From: Artyom Tarasenko <atar4qemu@googlemail.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: The OpenBIOS Mailinglist <openbios@openbios.org>,
qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] OBP under qemu-system-sparc64
Date: Wed, 14 Apr 2010 17:17:03 +0200 [thread overview]
Message-ID: <j2pfb8d4f71004140817yefb6aa46i87618574b70f25f0@mail.gmail.com> (raw)
2010/4/3 Blue Swirl <blauwirbel@gmail.com>:
> could be interesting to see what OBP
> from a real machine would think of the QEMU machine.
it doesn't live long enough to think something (must be something trivial):
$ sparc64-softmmu/qemu-system-sparc64 -bios u1_v3.11.1.bin -nographic
-cpu 'TI UltraSparc I' -d in_asm,int,cpu
--------------
IN:
0x000001fff0000020: ldxa [ %g0 ] (69), %g2
0x000001fff0000024: stxa %g0, [ %g0 ] (69)
0x000001fff0000028: b,a 0x1fff0001d88
--------------
IN:
0x000001fff0001d88: rdpr %cwp, %g1
0x000001fff0001d8c: wrpr 0, %cwp
0x000001fff0001d90: wrpr %g1, 0, %cwp
0x000001fff0001d94: call 0x1fff0000210
0x000001fff0001d98: add %g0, %g0, %o0
--------------
IN:
0x000001fff0000210: mov 0x1ff, %o1 ! 0x1ff
0x000001fff0000214: sllx %o1, 0x20, %o1
0x000001fff0000218: sethi %hi(0xf1300000), %o2
0x000001fff000021c: or %o2, %o1, %o2
0x000001fff0000220: stba %o0, [ %o2 ] (21)
0x000001fff0000224: add %o2, 4, %o2
0x000001fff0000228: lduba [ %o2 ] (21), %o1
0x000001fff000022c: sllx %o1, 8, %o0
0x000001fff0000230: inc %o2
0x000001fff0000234: lduba [ %o2 ] (21), %o1
0x000001fff0000238: or %o0, %o1, %o0
0x000001fff000023c: sllx %o0, 8, %o0
0x000001fff0000240: inc %o2
0x000001fff0000244: lduba [ %o2 ] (21), %o1
0x000001fff0000248: or %o0, %o1, %o0
0x000001fff000024c: sllx %o0, 8, %o0
0x000001fff0000250: inc %o2
0x000001fff0000254: lduba [ %o2 ] (21), %o1
0x000001fff0000258: or %o0, %o1, %o0
0x000001fff000025c: retl
0x000001fff0000260: nop
qemu: fatal: Trap 0x0032 while trap level (5) >= MAXTL (5), Error state
pc: 000001fff0000220 npc: 000001fff0000224
General Registers:
%g0-3: 0000000000000000 0000000000000007 0000000000000000 0000000000000000
%g4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
Current Register Window:
%o0-3: 0000000000000000 000001ff00000000 000001fff1300000 0000000000000000
%o4-7: 0000000000000000 0000000000000000 0000000000000000 000001fff0001d94
%l0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%l4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%i0-3: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%i4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
Floating Point Registers:
%f00: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f04: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f08: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f12: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f16: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f20: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f24: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f28: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f32: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f36: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f40: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f44: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f48: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f52: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f56: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
%f60: 000000000.000000 000000000.000000 000000000.000000 000000000.000000
pstate: 00000035 ccr: 00 (icc: ---- xcc: ----) asi: 00 tl: 5 pil: 0
cansave: 0 canrestore: 0 otherwin: 0 wstate: 0 cleanwin: 0 cwp: 7
fsr: 0000000000000000 y: 0000000000000000 fprs: 0000000000000000
Just in case, the properties of the real machine:
ok cd /
ok .properties
breakpoint-trap 0000007f
#size-cells 00000002
energystar-v2
model SUNW,501-2486
name SUNW,Ultra-1
clock-frequency 04f9f54d
banner-name Sun Ultra 1 UPA/SBus (UltraSPARC 167MHz)
device_type upa
ok cd /SUNW,UltraSPARC
ok .properties
manufacturer# 00 00 00 17
implementation# 00 00 00 10
mask# 00 00 00 40
sparc-version 00 00 00 09
ecache-associativity 00 00 00 01
ecache-line-size 00 00 00 40
ecache-size 00 08 00 00
#dtlb-entries 00 00 00 40
dcache-associativity 00 00 00 01
dcache-line-size 00 00 00 20
dcache-size 00 00 40 00
#itlb-entries 00 00 00 40
icache-associativity 00 00 00 02
icache-line-size 00 00 00 20
icache-size 00 00 40 00
upa-portid 00000000
clock-frequency 09f3ea9a
reg 000001c0 00000000 00000000 00000008
device_type cpu
name SUNW,UltraSPARC
--
Regards,
Artyom Tarasenko
solaris/sparc under qemu blog: http://tyom.blogspot.com/
next reply other threads:[~2010-04-14 15:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-14 15:17 Artyom Tarasenko [this message]
2010-04-14 16:15 ` [Qemu-devel] Re: OBP under qemu-system-sparc64 Artyom Tarasenko
2010-04-14 18:38 ` Blue Swirl
2010-04-14 19:30 ` Artyom Tarasenko
2010-04-14 19:44 ` Blue Swirl
2010-04-14 20:33 ` Artyom Tarasenko
2010-04-21 21:53 ` Artyom Tarasenko
2010-04-28 19:56 ` Artyom Tarasenko
2010-04-28 20:10 ` Blue Swirl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=j2pfb8d4f71004140817yefb6aa46i87618574b70f25f0@mail.gmail.com \
--to=atar4qemu@googlemail.com \
--cc=blauwirbel@gmail.com \
--cc=openbios@openbios.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).