From b26f70cccc602dcb2b3e49b5ece5eb366b0844c5 Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Mon, 12 Mar 2018 15:41:15 +0000 Subject: [PATCH] arch-arm: Fix unused variable warning in faults.cc Change-Id: Ife4a2189e140cdefcf53fa88213d8a5225067457 Reviewed-by: Jack Travaglini Reviewed-on: https://gem5-review.googlesource.com/9201 Reviewed-by: Giacomo Travaglini Maintainer: Giacomo Travaglini --- src/arch/arm/faults.cc | 3 +-- 1 file changed, 1 insertion(+), 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; -- 2.30.2