On Fri, 12 Oct 2012, Cookie wrote:

To whom it may concern,

I have a question related to debugging in Gem5. I tried to debug using
DPRINTF in ruby. As instructed in (http://gem5.org/Debugging), I added my
own debug flag 'RubyMyCache' in src/mem/SConscript. Then I compiled the
m5.debug and ran it with --debug-flags=RubyMyCache. However the expected
output wasn't printed out. But when I add an original debug flag, e.g.
RubySlicc (--debug-flags=RubySlicc, RubyMyCache), output from both of them
were printed out. So I wonder if there is anything I should have done? For
example, any additional files should I create, related to RubyMyCache?



If you add DPRINTF() statements to any of the .sm files, the debug flag RubySlicc is used, irrespective of the debug flag mentioned in the statement. So DPRINTF(RubyMyCache, "") will be converted to DPRINTF(RubySlicc, "").

--
Nilay
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to