qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Initializing PC from memory on reset?
@ 2011-11-23 23:59 Andreas Färber
  2011-11-24  7:47 ` Peter Maydell
  2011-11-25 16:25 ` [Qemu-devel] Memory read/write issues (was: Initializing PC from memory on reset?) Andreas Färber
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Färber @ 2011-11-23 23:59 UTC (permalink / raw)
  To: qemu-devel Developers

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-11-27 22:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23 23:59 [Qemu-devel] Initializing PC from memory on reset? Andreas Färber
2011-11-24  7:47 ` Peter Maydell
2011-11-24 21:24   ` Andreas Färber
2011-11-25 16:25 ` [Qemu-devel] Memory read/write issues (was: Initializing PC from memory on reset?) Andreas Färber
2011-11-27  8:32   ` [Qemu-devel] Memory read/write issues Avi Kivity
2011-11-27 14:07     ` Andreas Färber
2011-11-27 14:17       ` Avi Kivity
2011-11-27 22:16         ` Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).