From a1ac9df60ac6da0b369c3cf61d002ba39f0623bc Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Fri, 13 Nov 2020 20:11:05 -0800 Subject: [PATCH] arch-sparc,misc: Added M5_VAR_USED to SparcProcess var Compiling sparc/gem5.fast fails without specifying this variable is used. Change-Id: I86aa5c6495de111421458c2b62200ddb2a89076e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37536 Reviewed-by: Gabe Black Reviewed-by: Bobby R. Bruce Maintainer: Gabe Black Tested-by: kokoro --- src/arch/sparc/faults.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/sparc/faults.cc b/src/arch/sparc/faults.cc index 53e75765f..b48055800 100644 --- a/src/arch/sparc/faults.cc +++ b/src/arch/sparc/faults.cc @@ -814,7 +814,7 @@ TrapInstruction::invoke(ThreadContext *tc, const StaticInstPtr &inst) Process *p = tc->getProcessPtr(); - SparcProcess *sp = dynamic_cast(p); + M5_VAR_USED SparcProcess *sp = dynamic_cast(p); assert(sp); auto *workload = dynamic_cast(tc->getSystemPtr()->workload); -- 2.30.2