summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-05-11 16:32:32 -0700
committerNathan Binkert <nate@binkert.org>2009-05-11 16:32:32 -0700
commitf21e80ec72cf68ad859f18a2886297004ea9f959 (patch)
tree0952c5678b449ffd8def645fec2b714c4960df9e
parentc2c68c66b776839f20b78762b458eb6ed9bb1bb3 (diff)
downloadgem5-f21e80ec72cf68ad859f18a2886297004ea9f959.tar.xz
ruby: assert(false) should be panic.
This also fixes some compiler warnings
-rw-r--r--src/mem/ruby/tester/Check.cc6
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