Am 24.11.2011 08:47, schrieb Peter Maydell: > On 23 November 2011 23:59, Andreas Färber <andreas.faer...@web.de> 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