qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: Solaris/SPARC binaries


From: Blue Swirl
Subject: Re: [Qemu-devel] Re: Solaris/SPARC binaries
Date: Mon, 01 Aug 2005 22:59:14 +0200

well, just to let you know ... I'm interested in the emulator
(is there some howto available, regarding openprom and such?)

http://www.openfirmware.org/

I've learned most things by reading the sources (Proll, Linux arch/sparc/prom, silo). Luckily, the code base is not large.

A nice way of getting into action could be trying to run a simple application in the user mode emulator and see if it breaks and why. The debug logs are very interesting, as is tracing execution with outside gdb.

Here's an example with Linux and system emulator.
One shell:
qemu-system-sparc -kernel vmlinux-2.6.11+tcx -d in_asm,int -nographic -s -S
Other shell:
sparc-linux-gdb vmlinux-2.6.11+tcx
(here's a cross-gdb, could be a native gdb in remote Sparc machine)
(optionally in a third shell: tail -f /tmp/qemu.log)
(gdb) b prom_init
Breakpoint 1 at 0xf0266b78: file arch/sparc/prom/init.c, line 46.
(gdb) target remote :1234
0xffd00000 in ?? ()
(gdb) c

Breakpoint 1, prom_init (rp=0xffd1b538) at arch/sparc/prom/init.c:46
46      arch/sparc/prom/init.c: No such file or directory.
       in arch/sparc/prom/init.c
(gdb) fin
0xf0251790 in sun4c_continue_boot () at include/asm/uaccess.h:305
305     include/asm/uaccess.h: No such file or directory.
       in include/asm/uaccess.h
(gdb) p/x *romvec
$4 = {pv_magic_cookie = 0x10010407, pv_romvers = 0x3,
 pv_plugin_revision = 0x4d, pv_printrev = 0x10203, pv_v0mem = {
[etc.]

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





reply via email to

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