From 7e9da9966856743fb17c42a0a2c2c915e3a3e2b9 Mon Sep 17 00:00:00 2001 From: Kip Walker Date: Wed, 1 Jun 2022 10:51:57 -0700 Subject: Remove the now-unused PC_SERIALIZE_WFI When WFI was changed to throw a C++ exception, the special-npc signaling became obsolete. --- riscv/decode.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'riscv/decode.h') 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 */ -- cgit v1.1