|
|
@ -316,7 +316,6 @@ class wait_for_interrupt_t {}; |
|
|
|
|
|
|
|
|
#define wfi() \ |
|
|
#define wfi() \ |
|
|
do { set_pc_and_serialize(npc); \ |
|
|
do { set_pc_and_serialize(npc); \ |
|
|
npc = PC_SERIALIZE_WFI; \ |
|
|
|
|
|
throw wait_for_interrupt_t(); \ |
|
|
throw wait_for_interrupt_t(); \ |
|
|
} while (0) |
|
|
} while (0) |
|
|
|
|
|
|
|
|
@ -325,7 +324,6 @@ class wait_for_interrupt_t {}; |
|
|
/* Sentinel PC values to serialize simulator pipeline */ |
|
|
/* Sentinel PC values to serialize simulator pipeline */ |
|
|
#define PC_SERIALIZE_BEFORE 3 |
|
|
#define PC_SERIALIZE_BEFORE 3 |
|
|
#define PC_SERIALIZE_AFTER 5 |
|
|
#define PC_SERIALIZE_AFTER 5 |
|
|
#define PC_SERIALIZE_WFI 7 |
|
|
|
|
|
#define invalid_pc(pc) ((pc) & 1) |
|
|
#define invalid_pc(pc) ((pc) & 1) |
|
|
|
|
|
|
|
|
/* Convenience wrappers to simplify softfloat code sequences */ |
|
|
/* Convenience wrappers to simplify softfloat code sequences */ |
|
|
|