changeset bc759340631f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=bc759340631f
description:
        ruby: slicc: allow mathematical operations on Ticks

diffstat:

 src/mem/slicc/ast/OperatorExprAST.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r f35e317d2e1e -r bc759340631f src/mem/slicc/ast/OperatorExprAST.py
--- a/src/mem/slicc/ast/OperatorExprAST.py      Fri Aug 07 17:43:21 2015 +0100
+++ b/src/mem/slicc/ast/OperatorExprAST.py      Tue Aug 11 11:39:23 2015 -0500
@@ -67,6 +67,7 @@
             elif self.op in ("+", "-", "*", "/"):
                 expected_types = [("int", "int", "int"),
                                   ("Cycles", "Cycles", "Cycles"),
+                                  ("Tick", "Tick", "Tick"),
                                   ("Cycles", "int", "Cycles"),
                                   ("Scalar", "int", "Scalar"),
                                   ("int", "bool", "int"),
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to