[gem5-users] Re: Conditional DPRINTF

2022-02-13 Thread Jiayi Huang via gem5-users
Hi Majid, I think you can take a look at the panic_if(...); you can add DPRINTF_IF in a similar way. Best, Jiayi On Sat, Feb 12, 2022 at 5:41 AM Majid Jalili via gem5-users < gem5-users@gem5.org> wrote: > Hi, > > Is there any way or trick to make a debug flag conditional? For example, > --Debug

[gem5-users] Re: Conditional DPRINTF

2022-02-11 Thread Jason Z via gem5-users
Hi Majid, I'm not sure if there is a way to do it from the command line in an efficient manner, but I've just been adding the debug print statements inside if statements, for instance in your case you could move the debug's print statements for 'Cache' inside an if statement that checks for the