summaryrefslogtreecommitdiff
path: root/src/arch/arm/interrupts.hh
diff options
context:
space:
mode:
authorPrakash Ramrakhyani <Prakash.Ramrakhyani@arm.com>2011-05-04 20:38:28 -0500
committerPrakash Ramrakhyani <Prakash.Ramrakhyani@arm.com>2011-05-04 20:38:28 -0500
commit1b505f529142882fa191f1be23e17ee37b6885c9 (patch)
treed1046bba00bc7dda4b3d2b01428e73f0b4c85dca /src/arch/arm/interrupts.hh
parentba8d64520edcecdba28879399523fa6557268e21 (diff)
downloadgem5-1b505f529142882fa191f1be23e17ee37b6885c9.tar.xz
ARM: Implement WFE/WFI/SEV semantics.
Diffstat (limited to 'src/arch/arm/interrupts.hh')
-rw-r--r--src/arch/arm/interrupts.hh13
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)
{