qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Sparc system emulation in progress
@ 2004-08-31 18:12 Blue Swirl
  2004-08-31 19:06 ` Patrick Mauritz
  0 siblings, 1 reply; 5+ messages in thread
From: Blue Swirl @ 2004-08-31 18:12 UTC (permalink / raw)
  To: qemu-devel

Hi,

Just to avoid any duplicate work, I'd like to announce that I've been 
working on Sparc system level emulation. The emulation is not yet usable, a 
modified Linux kernel binary is loaded, it reprograms MMU, jumps to high 
memory, but crashes when it tries to access openprom (not implemented).

What is implemented:
Privileged instructions (somewhat complete, but buggy)
Sparc reference MMU (complete)

To do:
Openprom (Is there a FOSS one or even documentation? Otherwise make minimal 
stubs to get Linux running)
Hardware (serial, ethernet, scsi, probably not graphics nor keyboard)

The HW part needs a little thought. Sparc HW is memory-mapped, but there are 
separate address spaces, for example user data address space identifier is 
ASI 10, supervisor (kernel) 11, mmu regs 4 etc. I'd like to design a generic 
interface like used for i386 register_ioport_write and _read.

Any hackers out there with plenty of free time and know Sparc architecture?

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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

* Re: [Qemu-devel] Sparc system emulation in progress
  2004-08-31 18:12 Blue Swirl
@ 2004-08-31 19:06 ` Patrick Mauritz
  0 siblings, 0 replies; 5+ messages in thread
From: Patrick Mauritz @ 2004-08-31 19:06 UTC (permalink / raw)
  To: qemu-devel

On Tue, 31 Aug 2004 20:12:00 +0200, Blue Swirl <blueswir1@hotmail.com> wrote:
> To do:
> Openprom (Is there a FOSS one or even documentation? Otherwise make minimal
> stubs to get Linux running)
> Hardware (serial, ethernet, scsi, probably not graphics nor keyboard)
www.openbios.org - I'm one of the developers.. we usually hang out on
irc.freenode.net, #openbios


patrick mauritz

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

* Re: [Qemu-devel] Sparc system emulation in progress
@ 2004-09-05 21:11 Blue Swirl
  2004-09-05 21:45 ` Patrick Mauritz
  0 siblings, 1 reply; 5+ messages in thread
From: Blue Swirl @ 2004-09-05 21:11 UTC (permalink / raw)
  To: qemu-devel, patrick.mauritz

Thank you for the tip, but Openbios does not support Sparc.

On your page was a link to Proll (Sparc Prom code for Javastations to enable 
booting Linux). It looks more promising, I may even get a graphical console 
running soon.

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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

* Re: [Qemu-devel] Sparc system emulation in progress
  2004-09-05 21:11 [Qemu-devel] Sparc system emulation in progress Blue Swirl
@ 2004-09-05 21:45 ` Patrick Mauritz
  0 siblings, 0 replies; 5+ messages in thread
From: Patrick Mauritz @ 2004-09-05 21:45 UTC (permalink / raw)
  To: qemu-devel

On Sun, 05 Sep 2004 23:11:43 +0200, Blue Swirl <blueswir1@hotmail.com> wrote:
> Thank you for the tip, but Openbios does not support Sparc.
it's pretty portable, actually, for emulation it's especially easy to
adapt (as you can avoid the lowlevel init stuff - no-one cares for
that part as long as the state is right, which you can accomplish
differently in an emulator).

what do you need - a firmware image built for SPARC for a certain
start address (easy) and fcode images to initialize the "hardware"
(more work), anything else?

for the fcode images, the interfaces to use is important. I guess you
want to emulate some real chipsets, as most operating systems don't
rely on the services of openfirmware at all, not even as fallback -
which is a shame.

looking at proll, it seems like linux is a bad choice for the first
iteration of a port as it seems to rely on inofficial firmware
properties - netbsd should be more compliant

patrick mauritz

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

* Re: [Qemu-devel] Sparc system emulation in progress
@ 2004-09-06 15:54 Blue Swirl
  0 siblings, 0 replies; 5+ messages in thread
From: Blue Swirl @ 2004-09-06 15:54 UTC (permalink / raw)
  To: qemu-devel, patrick.mauritz

I agree that Openbios route would be cleaner, but the uglier Proll+Linux 
combination enables me to focus more on the Qemu side, instead of learning 
Netbsd and implementing the bottom half of Openbios. On the bad side, Proll 
fixes the hardware configuration, but then it is something known (Sun4m with 
TCX).

Maybe some Proll code could be lifted to arch-specific part Openbios? Both 
are GPL.

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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

end of thread, other threads:[~2004-09-06 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-05 21:11 [Qemu-devel] Sparc system emulation in progress Blue Swirl
2004-09-05 21:45 ` Patrick Mauritz
  -- strict thread matches above, loose matches on Subject: below --
2004-09-06 15:54 Blue Swirl
2004-08-31 18:12 Blue Swirl
2004-08-31 19:06 ` Patrick Mauritz

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