arch-sparc,misc: Added M5_VAR_USED to SparcProcess var
authorBobby R. Bruce <bbruce@ucdavis.edu>
Sat, 14 Nov 2020 04:11:05 +0000 (20:11 -0800)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Tue, 17 Nov 2020 22:46:40 +0000 (22:46 +0000)
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 <gabe.black@gmail.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/sparc/faults.cc

index 53e75765fcc147589a4af405d923764d066f4649..b48055800cc307d9eb4abdef991df0a7a4b2aba5 100644 (file)
@@ -814,7 +814,7 @@ TrapInstruction::invoke(ThreadContext *tc, const StaticInstPtr &inst)
 
     Process *p = tc->getProcessPtr();
 
-    SparcProcess *sp = dynamic_cast<SparcProcess *>(p);
+    M5_VAR_USED SparcProcess *sp = dynamic_cast<SparcProcess *>(p);
     assert(sp);
 
     auto *workload = dynamic_cast<SEWorkload *>(tc->getSystemPtr()->workload);