From 4869ba881ebfbc9305b6c7a6a9e8a566de0a93e4 Mon Sep 17 00:00:00 2001 From: Erik Hallnor Date: Tue, 6 Jul 2004 11:29:23 -0400 Subject: Remove duplicate stat cpu/trace/reader/m5_reader.cc: Wrap assert variable in NDEBUG --HG-- extra : convert_revision : 8c79dc30eff2f2fa0110a04c30df17ec4417c28c --- cpu/trace/reader/m5_reader.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpu') 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; -- cgit v1.2.3