changeset e1fd27c723a2 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=e1fd27c723a2
description:
        ruby: extend dprintfs for RubyGenerated TraceFlag
        "executing" isnt a very descriptive debug message and in going through 
the
        output you get multiple messages that say "executing" but nothing to 
help
        you parse through the code/execution.

        So instead, at least print out the name of the action that is taking
        place in these functions.

diffstat:

 src/mem/slicc/symbols/StateMachine.py |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 9138d38eccd7 -r e1fd27c723a2 src/mem/slicc/symbols/StateMachine.py
--- a/src/mem/slicc/symbols/StateMachine.py     Wed Feb 23 00:58:40 2011 -0500
+++ b/src/mem/slicc/symbols/StateMachine.py     Wed Feb 23 00:58:42 2011 -0500
@@ -883,7 +883,7 @@
 void
 $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, 
${{self.EntryType.c_ident}}*& m_cache_entry_ptr, const Address& addr)
 {
-    DPRINTF(RubyGenerated, "executing\\n");
+    DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
     ${{action["c_code"]}}
 }
 
@@ -898,7 +898,7 @@
 void
 $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, const 
Address& addr)
 {
-    DPRINTF(RubyGenerated, "executing\\n");
+    DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
     ${{action["c_code"]}}
 }
 
@@ -913,7 +913,7 @@
 void
 $c_ident::${{action.ident}}(${{self.EntryType.c_ident}}*& m_cache_entry_ptr, 
const Address& addr)
 {
-    DPRINTF(RubyGenerated, "executing\\n");
+    DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
     ${{action["c_code"]}}
 }
 
@@ -928,7 +928,7 @@
 void
 $c_ident::${{action.ident}}(const Address& addr)
 {
-    DPRINTF(RubyGenerated, "executing\\n");
+    DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
     ${{action["c_code"]}}
 }
 
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to