summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2011-02-23 00:58:42 -0500
committerKorey Sewell <ksewell@umich.edu>2011-02-23 00:58:42 -0500
commit78c37b804833da8777ce9a72247577dd719b5439 (patch)
tree1ed7607589f1ed6131f6d9407eea04c7584648ca
parent67cc52a6056e17ff5bc9e0da60e1e498a5dc2c1b (diff)
downloadgem5-78c37b804833da8777ce9a72247577dd719b5439.tar.xz
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.
-rw-r--r--src/mem/slicc/symbols/StateMachine.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py
index 6a5817d55..1251196c9 100644
--- a/src/mem/slicc/symbols/StateMachine.py
+++ b/src/mem/slicc/symbols/StateMachine.py
@@ -883,7 +883,7 @@ $c_ident::unset_tbe(${{self.TBEType.c_ident}}*& m_tbe_ptr)
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 @@ $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, ${{self.Entry
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 @@ $c_ident::${{action.ident}}(${{self.TBEType.c_ident}}*& m_tbe_ptr, const Address
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 @@ $c_ident::${{action.ident}}(${{self.EntryType.c_ident}}*& m_cache_entry_ptr, con
void
$c_ident::${{action.ident}}(const Address& addr)
{
- DPRINTF(RubyGenerated, "executing\\n");
+ DPRINTF(RubyGenerated, "executing ${{action.ident}}\\n");
${{action["c_code"]}}
}