* [Qemu-devel] Logging instructions in single step mode
@ 2009-05-01 19:39 Remco Vermeulen
2009-05-04 4:26 ` Mulyadi Santosa
0 siblings, 1 reply; 2+ messages in thread
From: Remco Vermeulen @ 2009-05-01 19:39 UTC (permalink / raw)
To: qemu-devel
Hello everyone,
I'm currently working on modification where I would like to log the
instructions executed when the cpu is in single step mode. Since the
current_tb is null, probably because the cpu is in single step mode I
can't use that tb.
I could access the memory pointed to by the instruction pointer, but I
don't know the length of the instruction.
I'm only interested in the actual bytes corresponding to the executed
instruction. Some hints towards the right direction would be really
nice.
Thanks,
Remco.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Logging instructions in single step mode
2009-05-01 19:39 [Qemu-devel] Logging instructions in single step mode Remco Vermeulen
@ 2009-05-04 4:26 ` Mulyadi Santosa
0 siblings, 0 replies; 2+ messages in thread
From: Mulyadi Santosa @ 2009-05-04 4:26 UTC (permalink / raw)
To: Remco Vermeulen; +Cc: qemu-devel
Hi Remco...
It's been awhile since I did brief pre-TCG qemu code analysis, but
here's my thought...
On Sat, May 2, 2009 at 2:39 AM, Remco Vermeulen <rvn270@few.vu.nl> wrote:
> Hello everyone,
>
> I'm currently working on modification where I would like to log the
> instructions executed when the cpu is in single step mode. Since the
> current_tb is null, probably because the cpu is in single step mode I can't
> use that tb.
> I could access the memory pointed to by the instruction pointer, but I don't
> know the length of the instruction.
How about checking disas_insn() in target-i386/translate.c ? I think
no matter what the current mode is (non single step or not), in some
ways this function should be called.
About checking the length of the instruction, i can not give too many
thoughts here. However, in the same function, probably you can mimic
how Qemu does code analysis.
regards,
Mulyadi.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-04 4:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-01 19:39 [Qemu-devel] Logging instructions in single step mode Remco Vermeulen
2009-05-04 4:26 ` Mulyadi Santosa
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).