summaryrefslogtreecommitdiff
path: root/src/mem/ruby/slicc_interface/AbstractController.hh
diff options
context:
space:
mode:
authorLena Olson <lena@cs.wisc.edu>2015-04-13 17:33:57 -0500
committerLena Olson <lena@cs.wisc.edu>2015-04-13 17:33:57 -0500
commitdea7acdb3e0357e580bc4e15e3346177b58d7ee0 (patch)
tree6f92cb6258100720791c046c66236a59b2a00239 /src/mem/ruby/slicc_interface/AbstractController.hh
parentd6af46915ccb15e5b9c0b951a101e03140ce0b9a (diff)
downloadgem5-dea7acdb3e0357e580bc4e15e3346177b58d7ee0.tar.xz
ruby: allow restoring from checkpoint when using DRAMCtrl
Restoring from a checkpoint with ruby + the DRAMCtrl memory model was not working, because ruby and DRAMCtrl disagreed on the current tick during warmup. Since there is no reason to do timing requests during warmup, use functional requests instead. Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/mem/ruby/slicc_interface/AbstractController.hh')
-rw-r--r--src/mem/ruby/slicc_interface/AbstractController.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/ruby/slicc_interface/AbstractController.hh b/src/mem/ruby/slicc_interface/AbstractController.hh
index f8970fb59..01859397a 100644
--- a/src/mem/ruby/slicc_interface/AbstractController.hh
+++ b/src/mem/ruby/slicc_interface/AbstractController.hh
@@ -205,6 +205,9 @@ class AbstractController : public MemObject, public Consumer
// memory controller.
MessageBuffer *m_responseFromMemory_ptr;
+ // Needed so we know if we are warming up
+ RubySystem *m_rubySystem;
+
// State that is stored in packets sent to the memory controller.
struct SenderState : public Packet::SenderState
{