|
From: | Atif Hashmi |
Subject: | Re: [Qemu-devel] Re: Detecting an assembly instruction in QEMU |
Date: | Sat, 7 Apr 2007 16:06:19 -0500 |
Hi,
Your should create a new helper function in \target-i386\helper.c to perform whatever you want QEMU to do when movl %eax,%eax is found.
To invoke that function create a new opcode in \target-i386\op.c. That opcode should only call your helper function.
Finally, modify \target-i386\translate.c to generate your opcode when movl %eax,%eax is translated. Look for the string 0x89, you can find out target and source registers of the move operation from variable modrm, so only %eax is considered.
Regards,
Eduardo
[Prev in Thread] | Current Thread | [Next in Thread] |