summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/resources/cache_unit.cc
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2011-02-18 14:29:17 -0500
committerKorey Sewell <ksewell@umich.edu>2011-02-18 14:29:17 -0500
commit8b4b4a1ba50a6f422ab75ccf0fb09568f1805ce6 (patch)
treeb88a94fed084c2556e94b326e2a4e3819d76d6e2 /src/cpu/inorder/resources/cache_unit.cc
parent72b5233112a41cb879ca63866f9f0ecf8638dbfb (diff)
downloadgem5-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.cc2
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);