From: Nathan Binkert Date: Mon, 11 May 2009 23:32:32 +0000 (-0700) Subject: ruby: assert(false) should be panic. X-Git-Tag: Calvin_Submission~336^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f21e80ec72cf68ad859f18a2886297004ea9f959;p=gem5.git ruby: assert(false) should be panic. This also fixes some compiler warnings --- diff --git a/src/mem/ruby/tester/Check.cc b/src/mem/ruby/tester/Check.cc index b9e7e3c10..7896b572a 100644 --- a/src/mem/ruby/tester/Check.cc +++ b/src/mem/ruby/tester/Check.cc @@ -100,7 +100,7 @@ void Check::initiatePrefetch(Sequencer* targetSequencer_ptr) } else if (type == CacheRequestType_ATOMIC) { command = MemCmd::SwapReq; // TODO -- differentiate between atomic types } else { - assert(false); + panic("Cannot convert request to packet"); } Packet pkt(&request, command, 0); // TODO -- make dest a real NodeID @@ -143,7 +143,7 @@ void Check::initiateAction() } else if (type == CacheRequestType_ATOMIC) { command = MemCmd::SwapReq; // TODO -- differentiate between atomic types } else { - assert(false); + panic("Cannot convert request to packet"); } Packet pkt(&request, command, 0); // TODO -- make dest a real NodeID @@ -186,7 +186,7 @@ void Check::initiateCheck() } else if (type == CacheRequestType_ATOMIC) { command = MemCmd::SwapReq; // TODO -- differentiate between atomic types } else { - assert(false); + panic("Cannot convert request to packet"); } Packet pkt(&request, command, 0); // TODO -- make dest a real NodeID