summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-03-22 17:21:23 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2013-03-22 17:21:23 -0500
commitb2c8c50f17b7d58755e7b1be20ba162773df4859 (patch)
treea35547ae8db023b7b615799a9490bc2478f3dee1
parente85b556d705c3045f7fa8cba3a9a6a4039bc18e7 (diff)
downloadgem5-b2c8c50f17b7d58755e7b1be20ba162773df4859.tar.xz
ruby: slicc: set sender, receiver clock objs for optional queue
-rw-r--r--src/mem/slicc/symbols/StateMachine.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py
index 4a33d78ba..af1435ae8 100644
--- a/src/mem/slicc/symbols/StateMachine.py
+++ b/src/mem/slicc/symbols/StateMachine.py
@@ -590,6 +590,9 @@ $c_ident::init()
code('$vid->setReceiver(this);')
elif vtype.c_ident == "TimerTable":
code('$vid->setClockObj(this);')
+ elif var.ident.find("optionalQueue") >= 0:
+ code('$vid->setSender(this);')
+ code('$vid->setReceiver(this);')
else:
# Network port object