From: Nikos Nikoleris Date: Mon, 12 Mar 2018 15:41:15 +0000 (+0000) Subject: arch-arm: Fix unused variable warning in faults.cc X-Git-Tag: v19.0.0.0~2230 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b26f70cccc602dcb2b3e49b5ece5eb366b0844c5;p=gem5.git 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 --- 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;