diff options
author | Korey Sewell <ksewell@umich.edu> | 2010-03-27 02:23:00 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2010-03-27 02:23:00 -0400 |
commit | 1c98bc5a567599f9fdc7d9940dbfe907091cb3b4 (patch) | |
tree | 9b9b7b9c049fdc4d34758cf1e62b9f3e33129586 /src/cpu/inorder | |
parent | 941399728fa387bd472041c01b6913e5b3e64909 (diff) | |
parent | 6b293c73fd19b73758547e1bfbe38a23d1800747 (diff) | |
download | gem5-1c98bc5a567599f9fdc7d9940dbfe907091cb3b4.tar.xz |
m5: merge inorder updates
Diffstat (limited to 'src/cpu/inorder')
-rw-r--r-- | src/cpu/inorder/resources/cache_unit.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpu/inorder/resources/cache_unit.cc b/src/cpu/inorder/resources/cache_unit.cc index 376ea8d26..d12f11a2c 100644 --- a/src/cpu/inorder/resources/cache_unit.cc +++ b/src/cpu/inorder/resources/cache_unit.cc @@ -443,6 +443,10 @@ CacheUnit::read(DynInstPtr inst, Addr addr, T &data, unsigned flags) //The size of the data we're trying to read. int dataSize = sizeof(T); + if (inst->traceData) { + inst->traceData->setAddr(addr); + } + if (inst->split2ndAccess) { dataSize = inst->split2ndSize; cache_req->splitAccess = true; @@ -541,6 +545,11 @@ CacheUnit::write(DynInstPtr inst, T data, Addr addr, unsigned flags, //The size of the data we're trying to read. int dataSize = sizeof(T); + if (inst->traceData) { + inst->traceData->setAddr(addr); + inst->traceData->setData(data); + } + if (inst->split2ndAccess) { dataSize = inst->split2ndSize; cache_req->splitAccess = true; |