diff options
author | Jerry Zhao <jerryz123@berkeley.edu> | 2023-03-25 21:45:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 21:45:32 -0700 |
commit | a6eb6c2a99ec7a23640d2aee5f3c05dc35c223d9 (patch) | |
tree | 94e0fa32c67d106173e2f87a9348dc22537bbdbf | |
parent | 4b0e34e0135b94171c1a81cdfc292d70e237a7b1 (diff) | |
parent | 15459552984313748dfe5da06fad3f7149f96fcc (diff) | |
download | riscv-isa-sim-a6eb6c2a99ec7a23640d2aee5f3c05dc35c223d9.zip riscv-isa-sim-a6eb6c2a99ec7a23640d2aee5f3c05dc35c223d9.tar.gz riscv-isa-sim-a6eb6c2a99ec7a23640d2aee5f3c05dc35c223d9.tar.bz2 |
Merge pull request #1294 from riscv-software-src/wfi_accessor
Add processor_t::is_waiting_for_interrupt accessor
-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; |