qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Initializing PC from memory on reset?


From: Andreas Färber
Subject: Re: [Qemu-devel] Initializing PC from memory on reset?
Date: Thu, 24 Nov 2011 22:24:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0

Am 24.11.2011 08:47, schrieb Peter Maydell:
> On 23 November 2011 23:59, Andreas Färber <address@hidden> wrote:
>> Unlike PowerPC, an architecture that I'm trying to emulate does not
>> store branch instructions in the reset vector but a memory address. I'm
>> therefore trying to read physical address 0x00000 and store its value
>> into my env->pc.
> 
> Have you looked at how M profile ARM does it? That has a similar
> "read memory for initial PC value". (There are some interesting
> wrinkles, not all of which we get quite right, regarding how this
> should interact with initial ELF image load and the user fiddling
> with PC and RAM in an attached debugger.)

Thanks. I thought I had seen something like that but apparently grep'ed
for the wrong keywords.

Can anyone enlighten me why rom_ptr()+lduw_p() works at this point in
time and lduw_phys() doesn't but later does? The MemoryRegion is
initialized as a ram area. Is this a legacy issue (pre-Memory API)?

Andreas



reply via email to

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