cpu: Fix fast build broken due to unused variable
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 15 Feb 2019 09:47:34 +0000 (09:47 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 15 Feb 2019 16:32:25 +0000 (16:32 +0000)
This fixes fast build for commit 25dc765889d948693995cfa622f001aa94b5364b
(fast build is striping out assertions)

Change-Id: I9536ad58a3d85990b16a1f8c2515f6bf5d3acf71
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/16463
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>

src/cpu/o3/lsq_impl.hh

index abe751c88ac062936a295a92165639f54fb7dfc2..5c64377b9f5402de639e3683fbb2e88980a0a52b 100644 (file)
@@ -685,7 +685,7 @@ LSQ<Impl>::pushRequest(const DynInstPtr& inst, bool isLoad, uint8_t *data,
     // This comming request can be either load, store or atomic.
     // Atomic request has a corresponding pointer to its atomic memory
     // operation
-    bool isAtomic = !isLoad && amo_op;
+    bool isAtomic M5_VAR_USED = !isLoad && amo_op;
 
     ThreadID tid = cpu->contextToThread(inst->contextId());
     auto cacheLineSize = cpu->cacheLineSize();