diff options
author | Korey Sewell <ksewell@umich.edu> | 2011-02-18 14:29:17 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2011-02-18 14:29:17 -0500 |
commit | 8b4b4a1ba50a6f422ab75ccf0fb09568f1805ce6 (patch) | |
tree | b88a94fed084c2556e94b326e2a4e3819d76d6e2 /src/cpu/inorder/resources/cache_unit.cc | |
parent | 72b5233112a41cb879ca63866f9f0ecf8638dbfb (diff) | |
download | gem5-8b4b4a1ba50a6f422ab75ccf0fb09568f1805ce6.tar.xz |
inorder: fix cache/fetch unit memory leaks
---
need to delete the cache request's data on clearRequest() now that we are recycling
requests
---
fetch unit needs to deallocate the fetch buffer blocks when they are replaced or
squashed.
Diffstat (limited to 'src/cpu/inorder/resources/cache_unit.cc')
-rw-r--r-- | src/cpu/inorder/resources/cache_unit.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cpu/inorder/resources/cache_unit.cc b/src/cpu/inorder/resources/cache_unit.cc index a734f1ebd..b17e5b3da 100644 --- a/src/cpu/inorder/resources/cache_unit.cc +++ b/src/cpu/inorder/resources/cache_unit.cc @@ -648,8 +648,6 @@ CacheUnit::write(DynInstPtr inst, uint8_t *data, unsigned size, if (inst->fault == NoFault) { if (!cache_req->splitAccess) { - // Remove this line since storeData is saved in INST? - cache_req->reqData = new uint8_t[size]; doCacheAccess(inst, write_res); } else { doCacheAccess(inst, write_res, cache_req); |