diff options
author | Andrew Waterman <andrew@sifive.com> | 2023-04-20 12:24:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 12:24:08 -0700 |
commit | 7e82fd7d19264d95675e884f314adc20cdee0b62 (patch) | |
tree | d0d97ec545b4e6e7962ae2744612f1846ea0de26 | |
parent | 0835bd7729f317a009d9bec775f8e4bf420f93a7 (diff) | |
parent | 79f1eed6782a456aff0f7812126e827c62defc6c (diff) | |
download | spike-7e82fd7d19264d95675e884f314adc20cdee0b62.zip spike-7e82fd7d19264d95675e884f314adc20cdee0b62.tar.gz spike-7e82fd7d19264d95675e884f314adc20cdee0b62.tar.bz2 |
Merge pull request #1320 from riscv-software-src/clear_wfi
Add clear in_wfi interface to proc_t
-rw-r--r-- | riscv/processor.h | 3 |
1 files changed, 2 insertions, 1 deletions
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: |