From 79f1eed6782a456aff0f7812126e827c62defc6c Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Thu, 13 Apr 2023 17:57:21 -0700 Subject: [PATCH] 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 cd53106ddd..8117568c68 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -293,7 +293,8 @@ class processor_t : public abstract_device_t 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: