From c03e7b3d221a927ceda6fdb7dd65ccd1a0df1945 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 21 Jun 2018 09:53:37 +0100 Subject: [PATCH] cpu: Fix bug introduced by RequestPtr type change Missing buffer allocation in mwaitAtomic. Change-Id: Ifccb6df2427df8b0daac5ee6a99e5cca0b20825e Signed-off-by: Giacomo Travaglini Reviewed-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/11469 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- src/cpu/base.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); + Addr addr = monitor.vAddr; int block_size = cacheLineSize(); uint64_t mask = ~((uint64_t)(block_size - 1)); -- 2.30.2