qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] micro-instruction size
@ 2007-05-14 16:46 divya arora
  2007-05-14 16:57 ` Sorav Bansal
  0 siblings, 1 reply; 2+ messages in thread
From: divya arora @ 2007-05-14 16:46 UTC (permalink / raw)
  To: qemu-devel

Hi,
I want to instrument call instruction so that my
tracking function is called on each call instruction.
>From what I understand, I should
a) change  target-i386/translate.c case 0xe8 to
generate my own microinstruction, say gen_op_mycall()
b) Add functionality of op_mycall() to
target-i386/op.c
c) Add this new micro-instruction in
i386-softmmu/opc.h. 

Is the above correct?
If yes, I am not sure how to determine the
microinstructions size which is required in 
DEF(s, n, copy_size).

Thanks,
Divya


       
____________________________________________________________________________________Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] micro-instruction size
  2007-05-14 16:46 [Qemu-devel] micro-instruction size divya arora
@ 2007-05-14 16:57 ` Sorav Bansal
  0 siblings, 0 replies; 2+ messages in thread
From: Sorav Bansal @ 2007-05-14 16:57 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

> I want to instrument call instruction so that my
> tracking function is called on each call instruction.
> >From what I understand, I should
> a) change  target-i386/translate.c case 0xe8 to
> generate my own microinstruction, say gen_op_mycall()
> b) Add functionality of op_mycall() to
> target-i386/op.c
> c) Add this new micro-instruction in
> i386-softmmu/opc.h.
>
> Is the above correct?


You only need to perform steps A and B.
Step C is automatically taken care of by dyngen.c.
Similarly, the copy_size in DEF(s,n,copy_size) is automatically computed.

Sorav

[-- Attachment #2: Type: text/html, Size: 790 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-14 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-14 16:46 [Qemu-devel] micro-instruction size divya arora
2007-05-14 16:57 ` Sorav Bansal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).