diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2015-01-25 07:22:44 -0500 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2015-01-25 07:22:44 -0500 |
commit | 9d8ddd92dc99671db0706413b4f7a7d391d5f58c (patch) | |
tree | 6d06c4b9acb61fde848cf3c9fba75be643b39b81 /src/cpu/inorder | |
parent | f6742ea26e1a1cac21b486c7c5adad6fb6304e92 (diff) | |
download | gem5-9d8ddd92dc99671db0706413b4f7a7d391d5f58c.tar.xz |
sim: Clean up InstRecord
Track memory size and flags as well as add some comments and consts.
Diffstat (limited to 'src/cpu/inorder')
-rw-r--r-- | src/cpu/inorder/resources/cache_unit.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cpu/inorder/resources/cache_unit.cc b/src/cpu/inorder/resources/cache_unit.cc index 3a44986e2..f8fa3b0d3 100644 --- a/src/cpu/inorder/resources/cache_unit.cc +++ b/src/cpu/inorder/resources/cache_unit.cc @@ -425,7 +425,7 @@ CacheUnit::read(DynInstPtr inst, Addr addr, inst->totalSize = size; if (inst->traceData) { - inst->traceData->setAddr(addr); + inst->traceData->setMem(addr, size, flags); } if (inst->split2ndAccess) { @@ -519,9 +519,8 @@ CacheUnit::write(DynInstPtr inst, uint8_t *data, unsigned size, int fullSize = size; inst->totalSize = size; - if (inst->traceData) { - inst->traceData->setAddr(addr); - } + if (inst->traceData) + inst->traceData->setMem(addr, size, flags); if (inst->split2ndAccess) { size = inst->split2ndSize; |