On 01/25/2011 10:05 AM, Edgar E. Iglesias wrote:
On Tue, Jan 25, 2011 at 10:04:39AM +0100, Stefano Bonifazi wrote:
Again wow!! Is that really possible? Some sort of callback triggered at
every instruction execution?
Yes, this mechanism works. I have written a code to count different
kinds of instructions.
Great! that opens a lot of possibilities!.
It exists in file qemu/target-i386/translate.c
Ops right! I checked target-ppc/translate.c as I need Power-PC as
target.. I wonder what function replaces it there..
You are also talking about qemu source code privided here
http://wiki.qemu.org/Download, right?
Yes I am using this http://wiki.qemu.org/download/qemu-0.13.0.tar.gz
If you need, I can give the source code of counting implementation
with some documentation.
Hope this helps.
Wow that would be awesome! I'd really appreciate it very much! Thank you! :)
You are free of sending it to my address! :)
Hi,
If you are interested in instruction counting maybe you should take
a look at the -icount option as well.
Cheers
Thank you!
Already tried long ago, it doesn't work with qemu-user..If I remember
fine its core was in files not used in qemu-user :(
Regards,
Stefano B.