Skip to content

Commit

Permalink
Add clear in_wfi interface to proc_t
Browse files Browse the repository at this point in the history
This enables more flexible modelling of wfi behavior
  • Loading branch information
jerryz123 committed Apr 20, 2023
1 parent 0835bd7 commit 79f1eed
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 79f1eed

Please sign in to comment.