From: Erik Hallnor Date: Tue, 6 Jul 2004 15:29:23 +0000 (-0400) Subject: Remove duplicate stat X-Git-Tag: m5_1.0_tutorial~268^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4869ba881ebfbc9305b6c7a6a9e8a566de0a93e4;p=gem5.git Remove duplicate stat cpu/trace/reader/m5_reader.cc: Wrap assert variable in NDEBUG --HG-- extra : convert_revision : 8c79dc30eff2f2fa0110a04c30df17ec4417c28c --- 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;