summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-08-19 03:52:26 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2013-08-19 03:52:26 -0400
commit7bc3eaec7a7a67b821774bea4298418241cbf815 (patch)
tree46c5bff6a0dbdf722afad2566cba1a97afffb0c9 /src
parent2a675aecb904143327befde70704d87c85fe7ea5 (diff)
downloadgem5-7bc3eaec7a7a67b821774bea4298418241cbf815.tar.xz
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.
Diffstat (limited to 'src')
-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 "