arch-arm: Replace direct use cpsr.el with currEL helper
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 15 Aug 2019 12:30:46 +0000 (13:30 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 20 Aug 2019 14:23:19 +0000 (14:23 +0000)
commite97a1fe390a91f30042d683ebc5e654d39844eda
treecb65b1a95de5bec2642af955ad54205f159f9db0
parent4ccb1ea710dcdcf179726448596b96c8e44f743a
arch-arm: Replace direct use cpsr.el with currEL helper

The patch is replacing it in places where the current EL could be using
AArch32, hence leading to an incorrect ExceptionLevel.

Change-Id: I99b75af2668f2c38fd88bec62e985ab7dbea80dc
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20251
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/faults.cc
src/arch/arm/insts/static_inst.cc
src/arch/arm/interrupts.cc
src/arch/arm/utility.cc