summaryrefslogtreecommitdiff
path: root/src/arch/arm/interrupts.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/interrupts.cc')
-rw-r--r--src/arch/arm/interrupts.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm/interrupts.cc b/src/arch/arm/interrupts.cc
index 3d841e9f8..e2febb35e 100644
--- a/src/arch/arm/interrupts.cc
+++ b/src/arch/arm/interrupts.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2012-2013, 2016 ARM Limited
+ * Copyright (c) 2009, 2012-2013, 2016, 2019 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
@@ -58,7 +58,7 @@ ArmISA::Interrupts::takeInt(ThreadContext *tc, InterruptTypes int_type) const
SCR scr;
HCR hcr;
hcr = tc->readMiscReg(MISCREG_HCR);
- ExceptionLevel el = (ExceptionLevel) ((uint32_t) cpsr.el);
+ ExceptionLevel el = currEL(tc);
bool cpsr_mask_bit, scr_routing_bit, scr_fwaw_bit, hcr_mask_override_bit;
if (!highest_el_is_64)