projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
serialize simulator on wfi
[riscv-isa-sim.git]
/
riscv
/
execute.cc
diff --git
a/riscv/execute.cc
b/riscv/execute.cc
index ebc9dc7e79e12474e4a6735d248a2d2a9fb85103..1b53ccf7c3e4eeff9dfcf426f3b3024d5f354d99 100644
(file)
--- a/
riscv/execute.cc
+++ b/
riscv/execute.cc
@@
-84,7
+84,7
@@
void processor_t::step(size_t n)
if (unlikely(invalid_pc(pc))) { \
switch (pc) { \
case PC_SERIALIZE_BEFORE: state.serialized = true; break; \
- case PC_SERIALIZE_AFTER:
instret++
; break; \
+ case PC_SERIALIZE_AFTER:
n = ++instret
; break; \
default: abort(); \
} \
pc = state.pc; \