Only break out of the simulator loop on WFI, not on CSR writes
[riscv-isa-sim.git] / riscv / insns / wfi.h
index 16de594408522bc52c89589bb899b6ac1a6e8a43..6504b78c608b0cf192df1bfd8592cb799389ff42 100644 (file)
@@ -1,2 +1,2 @@
 require_privilege(get_field(STATE.mstatus, MSTATUS_TW) ? PRV_M : PRV_S);
-set_pc_and_serialize(npc);
+wfi();