BitFriends <commandspide...@gmail.com> writes:

> 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?

I still think you could solve your problem using semihosting (which
exactly exposes a "fake" instruction to make semihosting calls to save
data on the host system).

>
> Cheers
>
> BitFriends


-- 
Alex Bennée

Reply via email to