qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] PC value translation from guest VA to host VA.


From: Hu Tao
Subject: Re: [Qemu-devel] PC value translation from guest VA to host VA.
Date: Thu, 13 Feb 2014 09:48:58 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Feb 12, 2014 at 05:42:00PM +0530, Gaurav Sharma wrote:
> To elaborate a bit more ...
> If the target is arm, in disas_arm_insn function we fetch the opcode as per 
> the
> pc value :
> insn = arm_ldl_code(env, s->pc, s->bswap_code)
> 
> This PC value i could trace back and see actually come from the cpu register
> set for arm regs[15]. which is the pc value.
> Is this PC value a target virtual address or the host virtual address ?
> How is the translation done ?

It's target virtual address, translated to target physical address by
softmmu.  Target physical address is mapped to host virtual address by
qemu memory model, see docs/memory.txt.




reply via email to

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