summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Nikoleris <nikos.nikoleris@arm.com>2018-03-12 15:41:15 +0000
committerNikos Nikoleris <nikos.nikoleris@arm.com>2018-03-15 13:47:52 +0000
commitb26f70cccc602dcb2b3e49b5ece5eb366b0844c5 (patch)
tree2359a340ea98a8f8e27a092b31a27964fde8914b
parent8b66b56b12664211e76fc1bc880f1a13cb88bc06 (diff)
downloadgem5-b26f70cccc602dcb2b3e49b5ece5eb366b0844c5.tar.xz
arch-arm: Fix unused variable warning in faults.cc
Change-Id: Ife4a2189e140cdefcf53fa88213d8a5225067457 Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/9201 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
-rw-r--r--src/arch/arm/faults.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/arm/faults.cc b/src/arch/arm/faults.cc
index a048fa8b2..bdb6f2545 100644
--- a/src/arch/arm/faults.cc
+++ b/src/arch/arm/faults.cc
@@ -479,7 +479,6 @@ ArmFault::invoke(ThreadContext *tc, const StaticInstPtr &inst)
// ARMv7 (ARM ARM issue C B1.9)
bool have_security = ArmSystem::haveSecurity(tc);
- bool have_virtualization = ArmSystem::haveVirtualization(tc);
FaultBase::invoke(tc);
if (!FullSystem)
@@ -584,7 +583,7 @@ ArmFault::invoke(ThreadContext *tc, const StaticInstPtr &inst)
setSyndrome(tc, MISCREG_HSR);
break;
case MODE_HYP:
- assert(have_virtualization);
+ assert(ArmSystem::haveVirtualization(tc));
tc->setMiscReg(MISCREG_SPSR_HYP, saved_cpsr);
setSyndrome(tc, MISCREG_HSR);
break;