Hi,

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.

I've verified by running with -S that xp /xh 0x00000 shows the expected
value.

When doing lduw_phys(0x00000) or cpu_read_physical_memory() in the CPU
reset function though, I just seem to read from uninitialized memory
(0xbaba). I've taken care to reorder CPU initialization to after the
BIOS file is loaded in the machine initialization function.

What am I doing wrong?

Thanks,
Andreas

Reply via email to