From 15459552984313748dfe5da06fad3f7149f96fcc Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Thu, 23 Mar 2023 16:24:08 -0700 Subject: Add processor_t::is_waiting_for_interrupt accessor Signed-off-by: Jerry Zhao --- riscv/processor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/riscv/processor.h b/riscv/processor.h index 60cfd04..cd53106 100644 --- a/riscv/processor.h +++ b/riscv/processor.h @@ -293,6 +293,8 @@ public: void set_mmu_capability(int cap); const char* get_symbol(uint64_t addr); + + bool is_waiting_for_interrupt() { return in_wfi; }; private: const isa_parser_t * const isa; -- cgit v1.1