qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] passing translated address out in QEMU
@ 2012-08-22 17:17 Xin Tong
  2012-08-23  3:14 ` 陳韋任 (Wei-Ren Chen)
  0 siblings, 1 reply; 14+ messages in thread
From: Xin Tong @ 2012-08-22 17:17 UTC (permalink / raw)
  To: qemu-devel

Hello

In tcg_gen_qemu_ld8s(tmp, addr, index); a TCGv addr is passed to the
INDEX_op_qemu_ld8s as param and the loaded value is passed back in
tmp. i want to get the translated value as well.  how can i do that ?

one way i can think of right now is to modify the INDEX_op_qemu_ld8s
and make it take one more TCGv and pass the translated address back
there. but this may need non-trial modifications to the target-* and
tcg.

another way is to pass out the translated address in the TCGv addr.
but it seems the register  TCGv addr is assigned to is saved (edx on
i386 linux) before entering the translation. how can i make addr
clobberable in the tcg_out_qemu_ld/tcg_out_qemu_st ?


Thanks

Xin

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

end of thread, other threads:[~2012-08-24  8:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 17:17 [Qemu-devel] passing translated address out in QEMU Xin Tong
2012-08-23  3:14 ` 陳韋任 (Wei-Ren Chen)
2012-08-23  4:38   ` Xin Tong
2012-08-23 10:06     ` 陳韋任 (Wei-Ren Chen)
2012-08-23 10:11     ` 陳韋任 (Wei-Ren Chen)
2012-08-23 15:34       ` Xin Tong
2012-08-23 15:52         ` Peter Maydell
2012-08-23 16:18           ` Xin Tong
2012-08-23 21:55             ` Steven
2012-08-24  2:57             ` 陳韋任 (Wei-Ren Chen)
2012-08-24  3:24               ` Xin Tong
2012-08-24  4:06                 ` 陳韋任 (Wei-Ren Chen)
2012-08-24  4:29                   ` Xin Tong
2012-08-24  8:15                     ` 陳韋任 (Wei-Ren Chen)

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