diff options
Diffstat (limited to 'src/arch/arm/interrupts.hh')
-rw-r--r-- | src/arch/arm/interrupts.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arch/arm/interrupts.hh b/src/arch/arm/interrupts.hh index 884bb7b9f..16a5a1f3d 100644 --- a/src/arch/arm/interrupts.hh +++ b/src/arch/arm/interrupts.hh @@ -137,6 +137,19 @@ class Interrupts : public SimObject (interrupts[INT_RST])); } + /** + * Check the raw interrupt state. + * This function is used to check if a wfi operation should sleep. If there + * is an interrupt pending, even if it's masked, wfi doesn't sleep. + * @return any interrupts pending + */ + bool + checkRaw() const + { + return intStatus; + } + + Fault getInterrupt(ThreadContext *tc) { |