diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-11 11:39:23 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-11 11:39:23 -0500 |
commit | 380a2ca91847f845afa1008218448995ac876ed2 (patch) | |
tree | a2e11a9236082c1df63b496c3530793ddf208ee0 /src/mem/slicc | |
parent | 35d8e5b52bbf41203c19e7226836511377041d46 (diff) | |
download | gem5-380a2ca91847f845afa1008218448995ac876ed2.tar.xz |
ruby: slicc: allow mathematical operations on Ticks
Diffstat (limited to 'src/mem/slicc')
-rw-r--r-- | src/mem/slicc/ast/OperatorExprAST.py | 1 |
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"), |