From: Korey Sewell Date: Wed, 23 Feb 2011 05:58:42 +0000 (-0500) Subject: ruby: extend dprintfs for RubyGenerated TraceFlag X-Git-Tag: stable_2012_02_02~551 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78c37b804833da8777ce9a72247577dd719b5439;p=gem5.git 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. --- 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"]}} }