projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe3a86e
)
Remove duplicate stat
author
Erik Hallnor
<ehallnor@umich.edu>
Tue, 6 Jul 2004 15:29:23 +0000
(11:29 -0400)
committer
Erik Hallnor
<ehallnor@umich.edu>
Tue, 6 Jul 2004 15:29:23 +0000
(11:29 -0400)
cpu/trace/reader/m5_reader.cc:
Wrap assert variable in NDEBUG
--HG--
extra : convert_revision :
8c79dc30eff2f2fa0110a04c30df17ec4417c28c
cpu/trace/reader/m5_reader.cc
patch
|
blob
|
history
diff --git
a/cpu/trace/reader/m5_reader.cc
b/cpu/trace/reader/m5_reader.cc
index a1ada38a2b4852df989fbc5147e1a047636f6021..d081f0bc0e10cfd08fdf76b5bc5b3b473188570b 100644
(file)
--- a/
cpu/trace/reader/m5_reader.cc
+++ b/
cpu/trace/reader/m5_reader.cc
@@
-54,10
+54,12
@@
M5Reader::getNextReq(MemReqPtr &req)
traceFile.read((char*) &ref, sizeof(ref));
if (!traceFile.eof()) {
//traceFile.read((char*) &ref, sizeof(ref));
+#ifndef NDEBUG
int gcount = traceFile.gcount();
assert(gcount != 0 || traceFile.eof());
assert(gcount == sizeof(ref));
assert(ref.cmd < 12);
+#endif
tmp_req = new MemReq();
tmp_req->paddr = ref.paddr;
tmp_req->asid = ref.asid;