From 1b505f529142882fa191f1be23e17ee37b6885c9 Mon Sep 17 00:00:00 2001 From: Prakash Ramrakhyani Date: Wed, 4 May 2011 20:38:28 -0500 Subject: ARM: Implement WFE/WFI/SEV semantics. --- src/arch/arm/interrupts.hh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/arch/arm/interrupts.hh') 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) { -- cgit v1.2.3