summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-03-10 17:42:53 -0500
committerGabe Black <gblack@eecs.umich.edu>2007-03-10 17:42:53 -0500
commit23bcd2654a5e6f7bbf39ecd4d693c9a7bfa4ead0 (patch)
tree6e18476f5cec82ff1e53958c78caa24f3e7d3b0f
parent25dc5569c3ed046b5c0163e6f8dc5342fe69eb33 (diff)
parentef6dfc2983b3ef4d3c3cc6a2dff7f6f6f37cb691 (diff)
downloadgem5-23bcd2654a5e6f7bbf39ecd4d693c9a7bfa4ead0.tar.xz
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/newmem
into zizzer.eecs.umich.edu:/.automount/zower/eecshome/m5/newmem-statetrace-test --HG-- extra : convert_revision : 50a40bea13892f2293ef037ac13b6c80dd8db5c2
-rw-r--r--src/cpu/simple/timing.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cpu/simple/timing.cc b/src/cpu/simple/timing.cc
index 6f3604678..2e602648a 100644
--- a/src/cpu/simple/timing.cc
+++ b/src/cpu/simple/timing.cc
@@ -275,14 +275,14 @@ TimingSimpleCPU::read(Addr addr, T &data, unsigned flags)
// memory system takes ownership of packet
dcache_pkt = NULL;
}
+
+ // This will need a new way to tell if it has a dcache attached.
+ if (req->isUncacheable())
+ recordEvent("Uncached Read");
} else {
delete req;
}
- // This will need a new way to tell if it has a dcache attached.
- if (req->isUncacheable())
- recordEvent("Uncached Read");
-
return fault;
}
@@ -381,13 +381,13 @@ TimingSimpleCPU::write(T data, Addr addr, unsigned flags, uint64_t *res)
dcache_pkt = NULL;
}
}
+ // This will need a new way to tell if it's hooked up to a cache or not.
+ if (req->isUncacheable())
+ recordEvent("Uncached Write");
} else {
delete req;
}
- // This will need a new way to tell if it's hooked up to a cache or not.
- if (req->isUncacheable())
- recordEvent("Uncached Write");
// If the write needs to have a fault on the access, consider calling
// changeStatus() and changing it to "bad addr write" or something.