if condition clarified

This commit is contained in:
Màrius Montón 2019-09-24 11:12:47 +02:00
parent 70e9313025
commit d575410a06
1 changed files with 1 additions and 2 deletions

View File

@ -40,8 +40,7 @@ bool CPU::cpu_process_IRQ() {
if (interrupt == true) { if (interrupt == true) {
csr_temp = register_bank->getCSR(CSR_MSTATUS); csr_temp = register_bank->getCSR(CSR_MSTATUS);
if (csr_temp & MSTATUS_MIE) { if ( (csr_temp & MSTATUS_MIE) == 0) {
} else {
log->SC_log(Log::DEBUG) << "interrupt delayed" << endl; log->SC_log(Log::DEBUG) << "interrupt delayed" << endl;
return ret_value; return ret_value;
} }