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>
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);