Hi,
I would like to trace the current tick in some points of an application
running under gem5 with the RISC-V isa and SE mode. Like:

main()
{
  foo();
  print_current_tick_here();
  bar();
}

Is there a simple solution to do this?
I know that m5_dumpstats() can output this information within a whole new
stats file, but I really wanted to print it as a part of the trace file,
together with the output from debug flags.
As I understand it, I could implement a pseudo instruction and print it
from there, but there is no util/m5/m5op_riscv.S which I guess would be
necessary to implement it, right?
A similar question
https://www.mail-archive.com/[email protected]/msg12415.html was answered
with the gem5 tutorials link, but I haven't found the refereed topic there.
Any tips on this?

Thank you in advance,
Pedro Becker.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to