summaryrefslogtreecommitdiff
path: root/src/cpu/simple
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-03-10 17:46:25 -0500
committerGabe Black <gblack@eecs.umich.edu>2007-03-10 17:46:25 -0500
commitbf4dade64af6160422e42c0feb1a5c69236728ae (patch)
tree3f504b28ef6d12baa0a17e9962fb9a141fb998c9 /src/cpu/simple
parentc5b49bdbad10a169b52181df7b37b168cc9800a5 (diff)
parentef6dfc2983b3ef4d3c3cc6a2dff7f6f6f37cb691 (diff)
downloadgem5-bf4dade64af6160422e42c0feb1a5c69236728ae.tar.xz
Merge zizzer.eecs.umich.edu:/bk/newmem
into zower.eecs.umich.edu:/home/gblack/m5/newmem-statetrace-test --HG-- extra : convert_revision : df36efd84d938e0e402648b85b3732ed786aaa29
Diffstat (limited to 'src/cpu/simple')
-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.