From: Nilay Vaish Date: Tue, 11 Aug 2015 16:39:23 +0000 (-0500) Subject: ruby: slicc: allow mathematical operations on Ticks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=380a2ca91847f845afa1008218448995ac876ed2;p=gem5.git ruby: slicc: allow mathematical operations on Ticks --- 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"),