Hi!
I am trying to profile code in detail running on a MinorCPU in SE mode. I'd
like to add profiling instructions into my code, whose execution shouldn't
affect the timing and the code should take the same time to run as it would
without those instructions. At minimum, the profiling instruction s
You could hack up custom m5op magic instructions easily by copying
existing ones, but I think it still takes up a memory fetch/decode.
Better than that, only if you hack a way to do something when a given
PC is reached. Maybe have a look at how Linux detects panics by
reading the PC of the panic s
The PCEventQueue in src/cpu/pc_event.hh allows you to trigger events on the
execution of particular PCs. The difficulty of course is mapping source
code to PCs. You would also not be able to pass any data to the event.
Using an m5op would incur some small overhead for fetching & executing the
op