All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] sparc32 bug/misfeature
@ 2007-02-27 15:02 Peter
  2007-02-27 21:01 ` Blue Swirl
  0 siblings, 1 reply; 3+ messages in thread
From: Peter @ 2007-02-27 15:02 UTC (permalink / raw)
  To: qemu-devel

hw/sun4m.c, line 154:

    m48t59_write(nvram, i++, 0x80); /* Sun4m OBP */

This is not a machine type recognized by SunOS (and probably other
early versions of Solaris).  According to idprom.h (some which is
quoted at http://www.sunmanagers.org/archives/1993/0050.html), the
only recognized sun4m IDs are:

#define IDM_SUN4M_690	 0x71	/* SPARCsystem 600 series */
#define IDM_SUN4M_50	 0x72	/* Campus 2 */

A SparcStation 10 is IDM_SUN4M_50.  SunOS tries to print an error
message and panic() if the machine ID is neither 0x71 or 0x72.  (It
fails with a data access exception because some of the devices haven't
been mapped yet.)

So this either needs to be changed to 0x72 or there needs to be some
way to configure qemu to specify the machine ID from the command line
(or config file).

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

* RE: [Qemu-devel] sparc32 bug/misfeature
  2007-02-27 15:02 [Qemu-devel] sparc32 bug/misfeature Peter
@ 2007-02-27 21:01 ` Blue Swirl
  2007-02-28 14:54   ` Peter
  0 siblings, 1 reply; 3+ messages in thread
From: Blue Swirl @ 2007-02-27 21:01 UTC (permalink / raw)
  To: pjcreath+openbios; +Cc: qemu-devel

>hw/sun4m.c, line 154:
>
>    m48t59_write(nvram, i++, 0x80); /* Sun4m OBP */
>
>This is not a machine type recognized by SunOS (and probably other
>early versions of Solaris).  According to idprom.h (some which is
>quoted at http://www.sunmanagers.org/archives/1993/0050.html), the
>only recognized sun4m IDs are:
>
>#define IDM_SUN4M_690	 0x71	/* SPARCsystem 600 series */
>#define IDM_SUN4M_50	 0x72	/* Campus 2 */
>
>A SparcStation 10 is IDM_SUN4M_50.  SunOS tries to print an error
>message and panic() if the machine ID is neither 0x71 or 0x72.  (It
>fails with a data access exception because some of the devices haven't
>been mapped yet.)
>
>So this either needs to be changed to 0x72 or there needs to be some
>way to configure qemu to specify the machine ID from the command line
>(or config file).

In Linux the IDs are listed in include/asm-sparc/machines.h, there are much 
more than just these two. Qemu currently emulates a SparcStation-5 with OBP 
v3, which has the ID 0x80. Adding new machines to Qemu is easy, though 
OpenBIOS needs to be updated as well.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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

* Re: [Qemu-devel] sparc32 bug/misfeature
  2007-02-27 21:01 ` Blue Swirl
@ 2007-02-28 14:54   ` Peter
  0 siblings, 0 replies; 3+ messages in thread
From: Peter @ 2007-02-28 14:54 UTC (permalink / raw)
  To: qemu-devel

On 2/27/07, Blue Swirl <blueswir1@hotmail.com> wrote:
> In Linux the IDs are listed in include/asm-sparc/machines.h, there are much
> more than just these two.

There are much more than those two in the original file as well.
These are the only two supported by SunOS 4.x (sun4m).

So should this be added to qemu as a "new machine" or should the
existing sparc target simply be made more configurable?

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

end of thread, other threads:[~2007-02-28 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-27 15:02 [Qemu-devel] sparc32 bug/misfeature Peter
2007-02-27 21:01 ` Blue Swirl
2007-02-28 14:54   ` Peter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.