From: Korey Sewell Date: Wed, 23 Jun 2010 22:21:12 +0000 (-0400) Subject: inorder: record load/store trace data X-Git-Tag: stable_2012_02_02~1020 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f778b3583be6b8166d11cb6d19480aaab3f3539;p=gem5.git inorder: record load/store trace data --- diff --git a/src/cpu/inorder/inorder_dyn_inst.cc b/src/cpu/inorder/inorder_dyn_inst.cc index 83004fdb8..2fb347506 100644 --- a/src/cpu/inorder/inorder_dyn_inst.cc +++ b/src/cpu/inorder/inorder_dyn_inst.cc @@ -614,6 +614,11 @@ template inline Fault InOrderDynInst::read(Addr addr, T &data, unsigned flags) { + if (traceData) { + traceData->setAddr(addr); + traceData->setData(data); + } + return cpu->read(this, addr, data, flags); } @@ -662,7 +667,11 @@ template inline Fault InOrderDynInst::write(T data, Addr addr, unsigned flags, uint64_t *res) { - //memcpy(memData, gtoh(data), sizeof(T)); + if (traceData) { + traceData->setAddr(addr); + traceData->setData(data); + } + storeData = data; DPRINTF(InOrderDynInst, "[tid:%i]: [sn:%i] Setting store data to %#x.\n",