From f21e80ec72cf68ad859f18a2886297004ea9f959 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 11 May 2009 16:32:32 -0700 Subject: [PATCH] ruby: assert(false) should be panic. This also fixes some compiler warnings --- src/mem/ruby/tester/Check.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2