qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* TCG IR extraction
@ 2022-08-31 18:11 Tom Clark
  2022-09-01  5:28 ` Richard Henderson
  2022-09-01 14:18 ` Alex Bennée
  0 siblings, 2 replies; 3+ messages in thread
From: Tom Clark @ 2022-08-31 18:11 UTC (permalink / raw)
  To: qemu-devel

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

Hello,

Thanks so much for reading this and I appreciate any and all time you put
into this.

I'm a dev working on a project that's using QEMU as its basis. I'm
interested in extracting the IR representation of translation blocks,
preferably at the instruction level, to do some analysis on it. In various
documentation around the web I see lots of references to textual examples
of the IR so I assumed it would be possible to extract it in byte format
and convert to textual myself.

I've done a lot of digging in the source and found the code_gen_buffer and
determined that's where the IR generation is being written to, but I'm
having trouble cross referencing DisasContext, etc, with that global to
actually identify individual lines of code. I'm also assuming there's some
kind of framing going on, so I don't think that I can even expect it to be
a simple buffer of bytes.

So my  - is this reasonable to even attempt, and if so, how would you go
about doing it?

Regards,
-T

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

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

end of thread, other threads:[~2022-09-01 14:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-31 18:11 TCG IR extraction Tom Clark
2022-09-01  5:28 ` Richard Henderson
2022-09-01 14:18 ` Alex Bennée

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).