qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] Switch to OpenBIOS for Sparc32/64?
@ 2006-06-08 15:40 Blue Swirl
  2006-06-08 21:45 ` Fabrice Bellard
  2006-06-14 12:22 ` Fabrice Bellard
  0 siblings, 2 replies; 12+ messages in thread
From: Blue Swirl @ 2006-06-08 15:40 UTC (permalink / raw)
  To: paul; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

> > So I'll send you a patch that changes the name 'proll.elf' to
> > 'openbios-builtin.elf' (or maybe it's better to use something like
> > 'openbios-sparc32', simplifies the code) and a sample OpenBIOS file and
> > that's it?
>
>Yes. Plus documentation bits.
>
>Bonus points if you include a README describing where the bios comes from 
>and
>basic description of how to reproduce it, even if this is just "download 
>the
>openbios sources and they should just work".

OK, here it goes. I didn't describe the reproduction steps 
(./config/scripts/switch-arch cross-sparc32, make, cp 
obj-sparc32/openbios-builtin.elf.nostrip openbios-sparc32), as I'll propose 
on OpenBIOS side some changes to make this a bit easier.

I included other fixes currently needed for correct operation (clock year 
fix, FPU fix by Joerg Platte, MMU no-fault fix).

I'll send the binary off-list to avoid the mailing list imposed size 
restrictions. It's built from unmodified SVN revision 54.

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

[-- Attachment #2: qemu-sparc.patch-58b.bz2 --]
[-- Type: application/octet-stream, Size: 32267 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [Qemu-devel] Switch to OpenBIOS for Sparc32/64?
@ 2006-06-18  9:29 Blue Swirl
  0 siblings, 0 replies; 12+ messages in thread
From: Blue Swirl @ 2006-06-18  9:29 UTC (permalink / raw)
  To: fabrice; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

>1) Include the bit 'psref' in the static translation state (in tb->flags). 
>Then psref can be tested at translation time and there is no run time cost. 
>This approach is used on the x86 target. The downside is that two TBs may 
>be generated for a given block of code depending on the psref value. 
>Ideally if no FPU operations are used in the TB, psref should be ignored 
>(not done yet on x86).

Is the attached patch what you had in mind?

Record FPU enabled/disabled condition to TB flags, generate code statically
based on translation time state.

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

[-- Attachment #2: sparc-fpu-translation.diff.bz2 --]
[-- Type: application/octet-stream, Size: 1716 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [Qemu-devel] Switch to OpenBIOS for Sparc32/64?
@ 2006-06-09  2:09 Armistead, Jason
  0 siblings, 0 replies; 12+ messages in thread
From: Armistead, Jason @ 2006-06-09  2:09 UTC (permalink / raw)
  To: Qemu-Devel (E-mail)

In response to Blue Swirl writing: 

> So I'll send you a patch that changes the name 'proll.elf' to
> 'openbios-builtin.elf' (or maybe it's better to use something like
> 'openbios-sparc32', simplifies the code) and a sample OpenBIOS file and
> that's it?

Fabrice then wrote:

>
>Good to see that you can use OpenBIOS now ! I'll apply your patch ASAP.
>

Might I add my thoughts on this subject ?

How about allowing the BIOS filename to be specified from the QEMU command
line also ?

Yes, if the BIOS is not specified then we should use a reasonable default
file instead.

But, if for example we specifically want to choose some other BIOS file,
then how about a "-bios filename" option so that we can use whatever BIOS we
like as an override.

e..g if the Sparc OpenBIOS developers might like the concept of having
different QEMU invocation scripts that they can call up depending on whether
they want to use a "stable" BIOS or rely on the latest SVN snapshot, they
should be able to do that too, without having to have a separate directory
with another copy of QEMU and associated disk image files in it.  Maybe they
want to compare against PROLL for some reason too.  It is all much simpler
if you can just specify the BIOS file rather than having to move BIOS files
around.

Cheers

Jason

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Qemu-devel] Switch to OpenBIOS for Sparc32/64?
@ 2006-06-07 15:56 Blue Swirl
  2006-06-07 16:17 ` Paul Brook
  0 siblings, 1 reply; 12+ messages in thread
From: Blue Swirl @ 2006-06-07 15:56 UTC (permalink / raw)
  To: fabrice, paul; +Cc: qemu-devel

I'd like to replace Proll with OpenBIOS as the Qemu/Sparc32 boot prom and 
then develop a Sparc64 port that would finally make the Sparc64 system 
emulator usable.

OpenBIOS/Sparc32 has reached or exceeded the level of functionality that 
Proll provides:
* boot from HDD and CD (several Linux distro installers work, NetBSD and 
Solaris in progress)
* preloaded kernel, initrd and command line support
* Forth support, which is needed for Sparc64, maybe also for other OSes than 
Linux on Sparc32
* graphical console and -nographic support
* SMP support

One big advantage is that OpenBIOS is actively being developed at the 
moment. OpenBIOS is very portable, currently x86, ppc, sparc32, and amd64 
are supported. The only missing feature is TFTP boot ability, but that is in 
my opinion not very useful for Qemu, as you can preload the kernel.

What do you think, is the switch okay, and if so, when can this happen?

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

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

end of thread, other threads:[~2006-06-18  9:29 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-08 15:40 [Qemu-devel] Switch to OpenBIOS for Sparc32/64? Blue Swirl
2006-06-08 21:45 ` Fabrice Bellard
2006-06-14 12:22 ` Fabrice Bellard
  -- strict thread matches above, loose matches on Subject: below --
2006-06-18  9:29 Blue Swirl
2006-06-09  2:09 Armistead, Jason
2006-06-07 15:56 Blue Swirl
2006-06-07 16:17 ` Paul Brook
2006-06-07 16:38   ` Natalia Portillo
2006-06-07 16:54     ` Joshua Root
2006-06-07 17:01       ` Natalia Portillo
2006-06-07 19:24   ` Blue Swirl
2006-06-07 19:48     ` 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).