fixes pending irq within irq hander behavior

This commit is contained in:
Eyck Jentzsch 2022-10-08 11:20:52 +02:00
parent a977200284
commit 40d1966e9a

View File

@ -1200,6 +1200,7 @@ template <typename BASE, features_e FEAT> uint64_t riscv_hart_m_p<BASE, FEAT>::l
this->reg.NEXT_PC = csr[mepc] & get_pc_mask();
CLOG(INFO, disass) << "Executing xRET";
check_interrupt();
this->trap_state = this->pending_trap;
return this->reg.NEXT_PC;
}