mem: Allow disabling of tXAW through a 0 activation limit
This patch fixes an issue where an activation limit of 0 was not allowed. With this patch, setting the limit to 0 simply disables the tXAW constraint.
This commit is contained in:
parent
2a675aecb9
commit
7bc3eaec7a
1 changed files with 4 additions and 0 deletions
|
@ -852,6 +852,10 @@ SimpleDRAM::recordActivate(Tick act_tick)
|
|||
|
||||
DPRINTF(DRAM, "Activate at tick %d\n", act_tick);
|
||||
|
||||
// if the activation limit is disabled then we are done
|
||||
if (actTicks.empty())
|
||||
return;
|
||||
|
||||
// sanity check
|
||||
if (actTicks.back() && (act_tick - actTicks.back()) < tXAW) {
|
||||
panic("Got %d activates in window %d (%d - %d) which is smaller "
|
||||
|
|
Loading…
Reference in a new issue