ruby: assert(false) should be panic.

This also fixes some compiler warnings
This commit is contained in:
Nathan Binkert 2009-05-11 16:32:32 -07:00
parent c2c68c66b7
commit f21e80ec72

View file

@ -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