qemu-devel
[Top][All Lists]
Advanced

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

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


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

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

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