summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpu/trace/reader/m5_reader.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/trace/reader/m5_reader.cc b/cpu/trace/reader/m5_reader.cc
index a1ada38a2..d081f0bc0 100644
--- 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;