Can I enable debugging mid-simulation? #1598
|
Hello! I am working with Simpoint checkpoints I created. I am still new to the standard library, so I am basing my approach off of https://github.com/gem5/gem5/blob/stable/configs/example/gem5_library/checkpoints/simpoints-se-restore.py I have added a custom debug flag, as I am trying to grab instruction operands and opcodes as they are sent to a certain execution unit (RISCV ISA). I have all that working easily, however, I do not want the warmup instructions included in the trace. The way I envision this is to enable debugging when the script schedules the actual Simpoint interval's instructions, such as on line 144 of simpoints-se-restore.py. I tried |
Replies: 2 comments 1 reply
|
I dug around in the m5 source code and found the code where the debug flags are parsed from the command line. |
|
Hi, I found this discussion after implementing exactly this feature for our own Design overview:
I will open a PR shortly. Happy to hear feedback on the design before or |
I dug around in the m5 source code and found the code where the debug flags are parsed from the command line.
I tried
m5.debug.flags['CustomFlag'].enable()and it works! I'm unsure if that's the proper way to do it, but if there's a better way, I'm curious to know.