aboutsummaryrefslogtreecommitdiff
path: root/riscv/decode.h
diff options
context:
space:
mode:
authorKip Walker <kip@rivosinc.com>2022-06-01 10:51:57 -0700
committerAndrew Waterman <andrew@sifive.com>2022-06-01 14:27:07 -0700
commit7e9da9966856743fb17c42a0a2c2c915e3a3e2b9 (patch)
tree7479c3e088b2d62f73481ca0de6b496fc43fbd01 /riscv/decode.h
parent68b3eb9bf1c04c19a66631f717163dd9ba2c923c (diff)
downloadspike-7e9da9966856743fb17c42a0a2c2c915e3a3e2b9.zip
spike-7e9da9966856743fb17c42a0a2c2c915e3a3e2b9.tar.gz
spike-7e9da9966856743fb17c42a0a2c2c915e3a3e2b9.tar.bz2
Remove the now-unused PC_SERIALIZE_WFI
When WFI was changed to throw a C++ exception, the special-npc signaling became obsolete.
Diffstat (limited to 'riscv/decode.h')
-rw-r--r--riscv/decode.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/riscv/decode.h b/riscv/decode.h
index e5e8115..9f13a42 100644
--- a/riscv/decode.h
+++ b/riscv/decode.h
@@ -316,7 +316,6 @@ class wait_for_interrupt_t {};
#define wfi() \
do { set_pc_and_serialize(npc); \
- npc = PC_SERIALIZE_WFI; \
throw wait_for_interrupt_t(); \
} while (0)
@@ -325,7 +324,6 @@ class wait_for_interrupt_t {};
/* Sentinel PC values to serialize simulator pipeline */
#define PC_SERIALIZE_BEFORE 3
#define PC_SERIALIZE_AFTER 5
-#define PC_SERIALIZE_WFI 7
#define invalid_pc(pc) ((pc) & 1)
/* Convenience wrappers to simplify softfloat code sequences */