From: Bobby R. Bruce Date: Sat, 14 Nov 2020 04:11:05 +0000 (-0800) Subject: arch-sparc,misc: Added M5_VAR_USED to SparcProcess var X-Git-Tag: develop-gem5-snapshot~456 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1ac9df60ac6da0b369c3cf61d002ba39f0623bc;p=gem5.git 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 --- 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);