changeset 6a043adb1e8d in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=6a043adb1e8d
description:
        ruby: removed the very old double trigger hack

        Committed by: Nilay Vaish <[email protected]>

diffstat:

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

diffs (41 lines):

diff -r 86b426640960 -r 6a043adb1e8d src/mem/slicc/ast/FuncCallExprAST.py
--- a/src/mem/slicc/ast/FuncCallExprAST.py      Tue Jul 02 10:11:00 2013 -0500
+++ b/src/mem/slicc/ast/FuncCallExprAST.py      Thu Jul 11 13:56:05 2013 -0500
@@ -148,37 +148,6 @@
     }
 }
 ''')
-        elif self.proc_name == "doubleTrigger":
-            # NOTE:  Use the doubleTrigger call with extreme caution
-            # the key to double trigger is the second event triggered
-            # cannot fail becuase the first event cannot be undone
-            assert len(cvec) == 4
-            code('''
-{
-    Address addr1 = ${{cvec[1]}};
-    TransitionResult result1 =
-        doTransition(${{cvec[0]}}, ${machine}_getState(addr1), addr1);
-
-    if (result1 == TransitionResult_Valid) {
-        //this second event cannont fail because the first event
-        // already took effect
-        Address addr2 = ${{cvec[3]}};
-        TransitionResult result2 = doTransition(${{cvec[2]}}, 
${machine}_getState(addr2), addr2);
-
-        // ensure the event suceeded
-        assert(result2 == TransitionResult_Valid);
-
-        counter++;
-        continue; // Check the first port again
-    }
-
-    if (result1 == TransitionResult_ResourceStall) {
-        scheduleEvent(Cycles(1));
-        // Cannot do anything with this transition, go check next
-        // doable transition (mostly likely of next port)
-    }
-}
-''')
         elif self.proc_name == "error":
             code("$0", self.exprs[0].embedError(cvec[0]))
         elif self.proc_name == "assert":
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to