Eliminating voltage emergencies via microarchitectural voltage control feedback and dynamic optimization