mem: Warn instead of panic for tXAW violation

Until the performance bug is fixed, avoid killing simulations.
This commit is contained in:
Andreas Hansson 2013-08-19 03:52:26 -04:00
parent 7bc3eaec7a
commit d5593f3c75

View file

@ -858,9 +858,10 @@ SimpleDRAM::recordActivate(Tick act_tick)
// sanity check // sanity check
if (actTicks.back() && (act_tick - actTicks.back()) < tXAW) { if (actTicks.back() && (act_tick - actTicks.back()) < tXAW) {
panic("Got %d activates in window %d (%d - %d) which is smaller " // @todo For now, stick with a warning
"than %d\n", activationLimit, act_tick - actTicks.back(), warn("Got %d activates in window %d (%d - %d) which is smaller "
act_tick, actTicks.back(), tXAW); "than %d\n", activationLimit, act_tick - actTicks.back(),
act_tick, actTicks.back(), tXAW);
} }
// shift the times used for the book keeping, the last element // shift the times used for the book keeping, the last element