Re: [gem5-users] Instrument a program with gem5

2013-03-25 Thread David Gloe
Ali, Thank you for responding. Basically what I have set up now is a separate branch monitor program running on a second core; I want to compare this against instrumentation on one core. My thread context idea was to have the monitor running in a separate thread context. Then it would be simil

Re: [gem5-users] Instrument a program with gem5

2013-03-25 Thread Ali Saidi
Hi David, It's certainly possible, but it's going to take some work. My random idea would be to change how all the branch instructions are defined, so the stash their real target address somewhere and jump to your handler. Other than that manually instrumenting the program (or doing it with som

[gem5-users] Instrument a program with gem5

2013-03-24 Thread David Gloe
Hello, I am attempting to instrument branch instructions in a program in gem5. So far, I have code in AtomicSimpleCPU which determines when branch instructions are executed. For every branch, I would like to call an instrumentation function and then return to execution of the simulated progra