qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* access guest address from within instruction
@ 2022-10-01 20:10 BitFriends
  2022-10-01 20:23 ` Richard Henderson
  2022-10-02 13:56 ` Alex Bennée
  0 siblings, 2 replies; 10+ messages in thread
From: BitFriends @ 2022-10-01 20:10 UTC (permalink / raw)
  To: qemu-devel

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

Hello,

I am trying to create a custom instruction that accesses guest memory
specified by an address in a register. I specifically want to read from
that address. So I tried to do that using "tcg_gen_qemu_ld_i64(&res,
env->regs[R_EDI], 0, MO_LEUQ);", but that doesn't save any result in res.
So either my call is wrong, or I need to translate that guest address to a
usable host address. I can't find much about this stuff in the docs. Could
anyone help me out with that?

Cheers

BitFriends

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

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

end of thread, other threads:[~2022-10-02 17:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-01 20:10 access guest address from within instruction BitFriends
2022-10-01 20:23 ` Richard Henderson
2022-10-01 20:59   ` BitFriends
2022-10-02  9:20   ` BitFriends
2022-10-02 14:40     ` Richard Henderson
2022-10-02 14:52       ` BitFriends
2022-10-02 17:13         ` Richard Henderson
2022-10-02 14:45     ` Peter Maydell
2022-10-02 14:57       ` BitFriends
2022-10-02 13:56 ` 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).