diff options
author | Erik Hallnor <ehallnor@umich.edu> | 2004-07-06 11:29:23 -0400 |
---|---|---|
committer | Erik Hallnor <ehallnor@umich.edu> | 2004-07-06 11:29:23 -0400 |
commit | 4869ba881ebfbc9305b6c7a6a9e8a566de0a93e4 (patch) | |
tree | 2d905578d0156da9c968252aa93a53f1ec9cad9b /cpu | |
parent | fe3a86e2efff07f858cda6d9ebd0e6ed853429eb (diff) | |
download | gem5-4869ba881ebfbc9305b6c7a6a9e8a566de0a93e4.tar.xz |
Remove duplicate stat
cpu/trace/reader/m5_reader.cc:
Wrap assert variable in NDEBUG
--HG--
extra : convert_revision : 8c79dc30eff2f2fa0110a04c30df17ec4417c28c
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/trace/reader/m5_reader.cc | 2 |
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; |