qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Status of sun4u emulation?
@ 2008-05-26 15:43 Markus Dahms
  2008-05-26 16:00 ` Blue Swirl
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Dahms @ 2008-05-26 15:43 UTC (permalink / raw)
  To: qemu-devel

Hi,

I'm curious about the status of the Sparc64/Sun4U emulation. I tried
to execute a little hello world program without success (output below).
The program runs fine on real hardware, the same little thing built for
sparc32 does what expected with qemu-sparc.
I'm also wondering why sparc64-softmmu is not build by default (not in
TARGET_DIRS).

Another sparc-related question: is there a way to press Stop-A in
system emulation mode? I even have a Stop key using a Sun Type 6 USB
keyboard on my PC, but that doesn't seem to be enough...

Thanks & Greetings,

	Markus

(host: i386, SVN r4586, gcc 3.4.6)

------------------------------------------------------------------------------
$ file hello-sparc64 
hello-sparc64: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for GNU/Linux 2.6.0, statically linked, not stripped
$ qemu-sparc64 hello-sparc64
Unhandled trap: 0x37
pc: 000000000010ccb4  npc: 000000000010ccb8
General Registers:
%g0: 0000000000000000	%g1: 0000000000000001	%g2: 0000000000000000	%g3: 000000000027a000	
%g4: 000000000027a298	%g5: 0000000000278400	%g6: 0000000000000010	%g7: 000000000027c850	
Current Register Window:
%o0: 000000000027ac50	%o1: 0000000000000001	%o2: 000000004007f498	%o3: 0000000000100bc0	
%o4: 0000000000100b60	%o5: 000000000027a800	%o6: 000000004007e1d1	%o7: 000000000010022c	
%l0: 000000000027ac00	%l1: 0000000000000000	%l2: 0000000000000000	%l3: 0000000000000000	
%l4: 0000000000000000	%l5: 0000000000000000	%l6: 0000000000000000	%l7: 0000000000000000	
%i0: 00000000001076a0	%i1: 00000000001036a0	%i2: 0000000000103440	%i3: 0000000000000000	
%i4: 0000000000000000	%i5: 0000000000000000	%i6: 000000004007e291	%i7: 0000000000104174	

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
pstate: 0x00000092 ccr: 0x88 asi: 0x82 tl: 0 fprs: 0
cansave: 0 canrestore: 6 otherwin: 0 wstate 0 cleanwin 6 cwp 7
fsr: 0x00000000

-- 
ubuntu is an ancient african word meaning "i can't install debian."
                                                         -- unknown

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

* Re: [Qemu-devel] Status of sun4u emulation?
  2008-05-26 15:43 [Qemu-devel] Status of sun4u emulation? Markus Dahms
@ 2008-05-26 16:00 ` Blue Swirl
  2008-05-26 19:44   ` Markus Dahms
  0 siblings, 1 reply; 5+ messages in thread
From: Blue Swirl @ 2008-05-26 16:00 UTC (permalink / raw)
  To: qemu-devel

On 5/26/08, Markus Dahms <mad@automagically.de> wrote:
> Hi,
>
>  I'm curious about the status of the Sparc64/Sun4U emulation. I tried
>  to execute a little hello world program without success (output below).
>  The program runs fine on real hardware, the same little thing built for
>  sparc32 does what expected with qemu-sparc.

The error (0x37) is privileged action, this should not happen with
normal executables. I'd be happy to debug the binary if you sent it to
me.

>  I'm also wondering why sparc64-softmmu is not build by default (not in
>  TARGET_DIRS).

Well, there are bugs in the emulation as you have noticed. Moreover a
full 64-bit user environment is not very common on Sparc so nobody has
been very interested in it except  me.

>  Another sparc-related question: is there a way to press Stop-A in
>  system emulation mode? I even have a Stop key using a Sun Type 6 USB
>  keyboard on my PC, but that doesn't seem to be enough...

No, though that's in TODO. The problem IIRC is that the X11 keys are
translated to PC values before getting translated to Type 4 codes.

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

* Re: [Qemu-devel] Status of sun4u emulation?
  2008-05-26 16:00 ` Blue Swirl
@ 2008-05-26 19:44   ` Markus Dahms
  2008-05-26 19:56     ` Blue Swirl
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Dahms @ 2008-05-26 19:44 UTC (permalink / raw)
  To: qemu-devel

Hello again,

[qemu-sparc64 failure on i386]
> The error (0x37) is privileged action, this should not happen with
> normal executables. I'd be happy to debug the binary if you sent it to
> me.

with r4588:

$ qemu-sparc64 hello-sparc64
/home/mad/src/svn/qemu/tcg/tcg.c:1700: tcg fatal error
qemu: uncaught target signal 6 (Aborted) - exiting

bye,

	Markus

-- 
ubuntu is an ancient african word meaning "i can't install debian."
                                                         -- unknown

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

* Re: [Qemu-devel] Status of sun4u emulation?
  2008-05-26 19:44   ` Markus Dahms
@ 2008-05-26 19:56     ` Blue Swirl
  2008-05-27  0:38       ` Paul Brook
  0 siblings, 1 reply; 5+ messages in thread
From: Blue Swirl @ 2008-05-26 19:56 UTC (permalink / raw)
  To: qemu-devel

On 5/26/08, Markus Dahms <mad@automagically.de> wrote:
> Hello again,
>
>  [qemu-sparc64 failure on i386]
>
> > The error (0x37) is privileged action, this should not happen with
>  > normal executables. I'd be happy to debug the binary if you sent it to
>  > me.
>
>
> with r4588:
>
>  $ qemu-sparc64 hello-sparc64
>  /home/mad/src/svn/qemu/tcg/tcg.c:1700: tcg fatal error
>  qemu: uncaught target signal 6 (Aborted) - exiting

That happened also without today's commits, it didn't show up because
of the earlier bug with cas. Some earlier commit must have broken TCG.

These error messages could be more descriptive, like what is the
problem and how to fix it.

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

* Re: [Qemu-devel] Status of sun4u emulation?
  2008-05-26 19:56     ` Blue Swirl
@ 2008-05-27  0:38       ` Paul Brook
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Brook @ 2008-05-27  0:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Blue Swirl

> >  /home/mad/src/svn/qemu/tcg/tcg.c:1700: tcg fatal error
> >  qemu: uncaught target signal 6 (Aborted) - exiting

> These error messages could be more descriptive, like what is the
> problem and how to fix it.

FWIW The general theory with aborts is that that should never occur so there's 
no point being verbose.

From a user perspective "tcg.g:1700 fatal error" is IMHO no worse than "Bad 
voodoo when trying to frobnicate the weezle". The user has no control over 
weasel frobnication, so it just adds confusion.

For someone fixing the bug you're likely to need additional instrumentation, a 
debugger and/or a core dump anyway so the file and line number is sufficient 
context.

Of course there are exceptions to this rule, but if it were easy to report the 
problem and how to fix it we'd have done so already :-)

Paul

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

end of thread, other threads:[~2008-05-27  0:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-26 15:43 [Qemu-devel] Status of sun4u emulation? Markus Dahms
2008-05-26 16:00 ` Blue Swirl
2008-05-26 19:44   ` Markus Dahms
2008-05-26 19:56     ` Blue Swirl
2008-05-27  0:38       ` Paul Brook

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).