qemu-discuss
[Top][All Lists]
Advanced

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

Re: [Qemu-discuss] How to get the content of Physical memory address ?


From: Peter Maydell
Subject: Re: [Qemu-discuss] How to get the content of Physical memory address ?
Date: Thu, 4 Dec 2014 16:04:56 +0000

On 4 December 2014 at 09:01,  <address@hidden> wrote:
> Hi, Experts
>
>    I implement special function by helper function just used on x86 host. I
> can get the value of common registers (eg: eax,ebx), and this value of eax
> means the physical memory address. But when I access the content of this
> physical memory address, QEMU is crashed. So it cannot access physical
> memory directly in this moment, I guess. However, how to access in the case?
> I need to access the physical memory.

So how are you trying to access the guest physical memory?
You should be using the ld*_phys() family of functions -- check some
other target-i386 code to see how it does similar things.

-- PMM



reply via email to

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