qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: PC traces from QEMU


From: Shashidhar Mysore
Subject: Re: [Qemu-devel] Re: PC traces from QEMU
Date: Thu, 29 Mar 2007 18:28:14 -0700

Hi Stuart,

Thanks for the reply, but since I'm a little new to qemu, can you please elaborate on how to insert the op_dump_pc function to extract the PC values?

Thanks,
-Shashi.

On 3/29/07, Stuart Brady <address@hidden> wrote:
On Thu, Mar 29, 2007 at 08:29:03PM +0300, Antti P Miettinen wrote:
> "Shashidhar Mysore" <address@hidden> writes:
> > I intend to extract program counter streams from QEMU as a program executes.
> > Can you please point me to the hooks that I may have to insert into the QEMU
> > source code in order to extract the PC values?
>
> I used to do that with qemu 0.7. I did not dig into this deep enough
> to find the minimal changes but at least the following was enough:
[...]
> - force dc->jmp_opt to zero in target-i386/translate.c

I don't quite see where you would do this.

BTW, the approach I took was to add something like gen_op_dump_pc(s->pc)
near the top of disas_insn (in translate.c), and have op_dump_pc (in
op.c) pass the program counter (held in PARAM1) to a helper (in
helper.c) that then prints it out.  I expect that's not the best
approach, but it worked quite well for my purposes.

Cheers,
--
Stuart Brady




reply via email to

[Prev in Thread] Current Thread [Next in Thread]