diff options
author | Nathan Binkert <nate@binkert.org> | 2009-05-11 16:32:32 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-05-11 16:32:32 -0700 |
commit | f21e80ec72cf68ad859f18a2886297004ea9f959 (patch) | |
tree | 0952c5678b449ffd8def645fec2b714c4960df9e | |
parent | c2c68c66b776839f20b78762b458eb6ed9bb1bb3 (diff) | |
download | gem5-f21e80ec72cf68ad859f18a2886297004ea9f959.tar.xz |
ruby: assert(false) should be panic.
This also fixes some compiler warnings
-rw-r--r-- | src/mem/ruby/tester/Check.cc | 6 |
1 files 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 |