diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-03-23 16:24:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 16:24:08 -0700 |
commit | 15459552984313748dfe5da06fad3f7149f96fcc (patch) | |
tree | 94e0fa32c67d106173e2f87a9348dc22537bbdbf | |
parent | 4b0e34e0135b94171c1a81cdfc292d70e237a7b1 (diff) | |
download | spike-15459552984313748dfe5da06fad3f7149f96fcc.zip spike-15459552984313748dfe5da06fad3f7149f96fcc.tar.gz spike-15459552984313748dfe5da06fad3f7149f96fcc.tar.bz2 |
Add processor_t::is_waiting_for_interrupt accessor
Signed-off-by: Jerry Zhao <jerryz123@berkeley.edu>
-rw-r--r-- | riscv/processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |