projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e85b556
)
ruby: slicc: set sender, receiver clock objs for optional queue
author
Nilay Vaish
<nilay@cs.wisc.edu>
Fri, 22 Mar 2013 22:21:23 +0000
(17:21 -0500)
committer
Nilay Vaish
<nilay@cs.wisc.edu>
Fri, 22 Mar 2013 22:21:23 +0000
(17:21 -0500)
src/mem/slicc/symbols/StateMachine.py
patch
|
blob
|
history
diff --git
a/src/mem/slicc/symbols/StateMachine.py
b/src/mem/slicc/symbols/StateMachine.py
index 4a33d78bab4b4bd5dc570dc4c166a72bbcc3b22f..af1435ae852c3a09ba513f71f3a0ad1b3de235e6 100644
(file)
--- 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