diff options
author | Prakash Ramrakhyani <Prakash.Ramrakhyani@arm.com> | 2011-05-04 20:38:28 -0500 |
---|---|---|
committer | Prakash Ramrakhyani <Prakash.Ramrakhyani@arm.com> | 2011-05-04 20:38:28 -0500 |
commit | 1b505f529142882fa191f1be23e17ee37b6885c9 (patch) | |
tree | d1046bba00bc7dda4b3d2b01428e73f0b4c85dca /src/arch/arm/interrupts.hh | |
parent | ba8d64520edcecdba28879399523fa6557268e21 (diff) | |
download | gem5-1b505f529142882fa191f1be23e17ee37b6885c9.tar.xz |
ARM: Implement WFE/WFI/SEV semantics.
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) { |