diff --git a/cpu.cpp b/cpu.cpp index 7712e7f..282f799 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1687,7 +1687,7 @@ bool cpu::misc_operations(const uint16_t instr) #else std::unique_lock lck(qi_lock); - while (check_pending_interrupts() == false) + if (check_pending_interrupts() == false) qi_cv.wait(lck); #endif uint64_t end = get_us();