projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a675ae
)
mem: Allow disabling of tXAW through a 0 activation limit
author
Andreas Hansson
<andreas.hansson@arm.com>
Mon, 19 Aug 2013 07:52:26 +0000
(
03:52
-0400)
committer
Andreas Hansson
<andreas.hansson@arm.com>
Mon, 19 Aug 2013 07:52:26 +0000
(
03:52
-0400)
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.
src/mem/simple_dram.cc
patch
|
blob
|
history
diff --git
a/src/mem/simple_dram.cc
b/src/mem/simple_dram.cc
index 2bb1cec9d9123d41e3cfebef3bd0fcf833e03d8e..3d8f71ee91550ce6c39b96c602a9ce67ca8e4a47 100644
(file)
--- 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 "