Old versions of SunOS don't understand the "Sun4m with OBP" machine
type of 0x80.  They expect the machine type of actual Sun machines,
e.g., 0x71 or 0x72.  This patch adds a machine type to the Sparc
target and renames the old machine to clarify that it's emulating an
OBP platform rather than standard hardware.

The default behavior (without a -M flag) will be the same (using
machine type of 0x80/OBP), but the explicit name for the OBP platform
is now "sun4m-obp".  Plain old "sun4m" mimics real hardware.

This patch doesn't make SunOS 4.x boot completely under qemu, as both
machines still use OpenBIOS as their boot rom, and there are a bunch
of OpenBIOS incompatibilies with SunOS.  I've submitted a patch to fix
a number of them to the OpenBIOS mailing list, but there are still
some glitches keeping the machine from booting.

But this patch is necessary to boot SunOS 4.x.

Attachment: qemu-sunos.patch.gz
Description: GNU Zip compressed data

Reply via email to