qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Qemu memory operations


From: Prathmesh Kallurkar
Subject: Re: [Qemu-devel] Qemu memory operations
Date: Tue, 14 Aug 2012 17:28:55 +0530

Sorry friends for the misleading instructions in the previous mail.

cmp ecx, [r12+0x4]
mov r10b, [r13+0x0]
mov byte [rax+0xf0000], 0x0
mov byte [rax+rdx], 0x0

It seems all the above instructions are getting covered with the tcg_gen_ld/st helpers.

But now I have stumbled upon another problem : 
I initially thought that all the interactions with the guest memory happen through the helper instructions in the translate.c file. 
However, I found that the helper functions for some instructions like cmpxcgh8b and cmpxchg16b are actually accessing guest memory.

So, does it mean there are more than one entry points for reading guest memory.
Can some one please explain how are the ldq and stq instructions translated to access the guest memory ??

Thanks in advance.


Regards,
Prathmesh Kallurkar

reply via email to

[Prev in Thread] Current Thread [Next in Thread]