summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-08-11 11:39:23 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-08-11 11:39:23 -0500
commit380a2ca91847f845afa1008218448995ac876ed2 (patch)
treea2e11a9236082c1df63b496c3530793ddf208ee0
parent35d8e5b52bbf41203c19e7226836511377041d46 (diff)
downloadgem5-380a2ca91847f845afa1008218448995ac876ed2.tar.xz
ruby: slicc: allow mathematical operations on Ticks
-rw-r--r--src/mem/slicc/ast/OperatorExprAST.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/slicc/ast/OperatorExprAST.py b/src/mem/slicc/ast/OperatorExprAST.py
index b1614b6a0..7752e9c07 100644
--- a/src/mem/slicc/ast/OperatorExprAST.py
+++ b/src/mem/slicc/ast/OperatorExprAST.py
@@ -67,6 +67,7 @@ class InfixOperatorExprAST(ExprAST):
elif self.op in ("+", "-", "*", "/"):
expected_types = [("int", "int", "int"),
("Cycles", "Cycles", "Cycles"),
+ ("Tick", "Tick", "Tick"),
("Cycles", "int", "Cycles"),
("Scalar", "int", "Scalar"),
("int", "bool", "int"),