projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only break out of the simulator loop on WFI, not on CSR writes
[riscv-isa-sim.git]
/
riscv
/
insns
/
wfi.h
diff --git
a/riscv/insns/wfi.h
b/riscv/insns/wfi.h
index 16de594408522bc52c89589bb899b6ac1a6e8a43..6504b78c608b0cf192df1bfd8592cb799389ff42 100644
(file)
--- a/
riscv/insns/wfi.h
+++ b/
riscv/insns/wfi.h
@@
-1,2
+1,2
@@
require_privilege(get_field(STATE.mstatus, MSTATUS_TW) ? PRV_M : PRV_S);
-
set_pc_and_serialize(npc
);
+
wfi(
);