From 79f1eed6782a456aff0f7812126e827c62defc6c Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Thu, 13 Apr 2023 17:57:21 -0700 Subject: Add clear in_wfi interface to proc_t This enables more flexible modelling of wfi behavior --- riscv/processor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/riscv/processor.h b/riscv/processor.h index cd53106..8117568 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -293,7 +293,8 @@ public: void set_mmu_capability(int cap); const char* get_symbol(uint64_t addr); - + + void clear_waiting_for_interrupt() { in_wfi = false; }; bool is_waiting_for_interrupt() { return in_wfi; }; private: -- cgit v1.1