summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/simple_dram.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/simple_dram.cc b/src/mem/simple_dram.cc
index 2bb1cec9d..3d8f71ee9 100644
--- a/src/mem/simple_dram.cc
+++ b/src/mem/simple_dram.cc
@@ -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 "