access guest address from within instruction

2022-10-01 Thread BitFriends
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

Re: access guest address from within instruction

2022-10-01 Thread BitFriends
work when fixing the warnings. Regards Am Sa., 1. Okt. 2022 um 22:23 Uhr schrieb Richard Henderson < richard.hender...@linaro.org>: > On 10/1/22 13:10, BitFriends wrote: > > Hello, > > > > I am trying to create a custom instruction that accesses guest memory > specifi

Re: access guest address from within instruction

2022-10-02 Thread BitFriends
e code? This still gives some warnings, like TCGv_i32 expected (and when you use TCGv_i32, it says TCGv_i64 expected) plus some casting warnings. Am Sa., 1. Okt. 2022 um 22:23 Uhr schrieb Richard Henderson < richard.hender...@linaro.org>: > On 10/1/22 13:10, BitFriends wrote: > >

Re: access guest address from within instruction

2022-10-02 Thread BitFriends
nds more what I want for a direct action, No? Regards BitFriends Richard Henderson schrieb am So., 2. Okt. 2022, 16:40: > On 10/2/22 02:20, BitFriends wrote: > > I now came up with this code: > > > > TCGv_i64 res = 0; > > TCGv_i64 addr = (TCGv_i64)(env->regs[R_ED

Re: access guest address from within instruction

2022-10-02 Thread BitFriends
thanks for the clarification, I will look at those insns. My instruction is for some more advanced logging between guest and host, that should be done quickly. Regards BitFriends Peter Maydell schrieb am So., 2. Okt. 2022, 16:45: > On Sun, 2 Oct 2022 at 10:22, BitFriends wrote: > &