diff --git a/src/CPU.cpp b/src/CPU.cpp index ac0b514..46a24ca 100644 --- a/src/CPU.cpp +++ b/src/CPU.cpp @@ -40,8 +40,7 @@ bool CPU::cpu_process_IRQ() { if (interrupt == true) { csr_temp = register_bank->getCSR(CSR_MSTATUS); - if (csr_temp & MSTATUS_MIE) { - } else { + if ( (csr_temp & MSTATUS_MIE) == 0) { log->SC_log(Log::DEBUG) << "interrupt delayed" << endl; return ret_value; }