Remove duplicate stat
authorErik Hallnor <ehallnor@umich.edu>
Tue, 6 Jul 2004 15:29:23 +0000 (11:29 -0400)
committerErik 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

index a1ada38a2b4852df989fbc5147e1a047636f6021..d081f0bc0e10cfd08fdf76b5bc5b3b473188570b 100644 (file)
@@ -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;