From 7798ffb6948d12c7f2bc63dc9a3263bb19aa3297 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Tue, 9 Jan 2018 10:10:04 +0000 Subject: arch-arm: Change function name for banked miscregs This commit changes the function's name used for retrieving the index of a security banked register given the flatten index. This will avoid confusion with flattenRegId, which has a different purpose. Change-Id: I470ffb55916cb7fc9f78e071a7f2e609c1829f1a Signed-off-by: Giacomo Travaglini Reviewed-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/7982 Maintainer: Andreas Sandberg --- src/arch/arm/insts/static_inst.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch/arm/insts') diff --git a/src/arch/arm/insts/static_inst.cc b/src/arch/arm/insts/static_inst.cc index f7a9745ad..aace1de2b 100644 --- a/src/arch/arm/insts/static_inst.cc +++ b/src/arch/arm/insts/static_inst.cc @@ -880,7 +880,7 @@ ArmStaticInst::checkSETENDEnabled(ThreadContext *tc, CPSR cpsr) const // Get the index of the banked version of SCTLR: // SCTLR_s or SCTLR_ns. - auto banked_sctlr = flattenMiscRegNsBanked( + auto banked_sctlr = snsBankedIndex( MISCREG_SCTLR, tc, !inSecureState(tc)); // SCTLR.SED bit is enabling/disabling the ue of SETEND instruction. -- cgit v1.2.3