if condition clarified
This commit is contained in:
parent
70e9313025
commit
d575410a06
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue