summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorGiacomo Travaglini <giacomo.travaglini@arm.com>2018-06-21 09:53:37 +0100
committerGiacomo Travaglini <giacomo.travaglini@arm.com>2018-06-21 12:09:19 +0000
commitc03e7b3d221a927ceda6fdb7dd65ccd1a0df1945 (patch)
treeaeab9d96533677d701d0e35fe8614321254cc4b1 /src/cpu
parent5d442571eff5116551609ee7a3b63a3b9d27ff45 (diff)
downloadgem5-c03e7b3d221a927ceda6fdb7dd65ccd1a0df1945.tar.xz
cpu: Fix bug introduced by RequestPtr type change
Missing buffer allocation in mwaitAtomic. Change-Id: Ifccb6df2427df8b0daac5ee6a99e5cca0b20825e Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-on: https://gem5-review.googlesource.com/11469 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/base.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/base.cc b/src/cpu/base.cc
index 1a497db9a..878e65551 100644
--- a/src/cpu/base.cc
+++ b/src/cpu/base.cc
@@ -318,7 +318,8 @@ BaseCPU::mwaitAtomic(ThreadID tid, ThreadContext *tc, BaseTLB *dtb)
assert(tid < numThreads);
AddressMonitor &monitor = addressMonitor[tid];
- RequestPtr req;
+ RequestPtr req = std::make_shared<Request>();
+
Addr addr = monitor.vAddr;
int block_size = cacheLineSize();
uint64_t mask = ~((uint64_t)(block_size - 1));