]> git.proxmox.com Git - mirror_qemu.git/commit
hw/hppa/machine: Load 64-bit firmware on 64-bit machines
authorHelge Deller <deller@gmx.de>
Fri, 2 Feb 2024 15:22:38 +0000 (16:22 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 12 Feb 2024 23:44:06 +0000 (00:44 +0100)
commita9314795f068515ff5925d0f68adf0a3215f6d2d
treee12099eeec304df492057c0deb60830974eea14c
parent7c0dfcf9395ebd24ae4c69329a74f10d8d614b7d
hw/hppa/machine: Load 64-bit firmware on 64-bit machines

Load the 64-bit SeaBIOS-hppa firmware by default when running on a 64-bit
machine. This will enable us to later support more than 4GB of RAM and is
required that the OS (or PALO bootloader) will start or install a 64-bit kernel
instead of a 32-bit kernel.

Note that SeaBIOS-hppa v16 provides the "-fw_cfg opt/OS64,string=3" option with
which the user can control what the firmware shall report back to the OS:
Support of 32-bit OS, support of a 64-bit OS, or support for both (default).

Wrap firmware loading inside !qtest_enabled() to avoid this warning with
qtest: "qemu-system-hppa: no firmware provided".

Signed-off-by: Helge Deller <deller@gmx.de>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
hw/hppa/machine.c