changeset 727c1f23d5ec in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=727c1f23d5ec
description:
        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:

 src/mem/simple_dram.cc |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r c8dd3368c6ba -r 727c1f23d5ec src/mem/simple_dram.cc
--- a/src/mem/simple_dram.cc    Mon Aug 19 03:52:25 2013 -0400
+++ b/src/mem/simple_dram.cc    Mon Aug 19 03:52:26 2013 -0400
@@ -852,6 +852,10 @@
 
     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 "
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to