Browse Source
Breaking out of the loop on WFI was intended to let other threads run when the current thread has no work to do. There's no advantage to doing so on CSR writes, and the unintentional change in thread interleaving broke some test programs that relied on short timer periods.pull/204/head
3 changed files with 9 additions and 2 deletions
@ -1,2 +1,2 @@ |
|||
require_privilege(get_field(STATE.mstatus, MSTATUS_TW) ? PRV_M : PRV_S); |
|||
set_pc_and_serialize(npc); |
|||
wfi(); |
|||
|
|||
Loading…
Reference in new issue