Skip to content

Commit

Permalink
Merge pull request #1320 from riscv-software-src/clear_wfi
Browse files Browse the repository at this point in the history
Add clear in_wfi interface to proc_t
  • Loading branch information
aswaterman committed Apr 20, 2023
2 parents 0835bd7 + 79f1eed commit 7e82fd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion riscv/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7e82fd7

Please sign in to comment.