hppa target fixes
[PULL for 11.2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa
In reply to Helge DellerFrom: "Kirill A. Korinsky" <[email protected]>
Test that OpenBSD boots on a B160L and reaches the installer.
--- tests/functional/hppa/meson.build | 1 + tests/functional/hppa/test_openbsd.py | 37 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100755 tests/functional/hppa/test_openbsd.py
tests/functional/hppa/meson.build +1 -0
@@ -6,4 +6,5 @@ tests_hppa_system_quick = [ tests_hppa_system_thorough = [ 'cdboot', + 'openbsd', ]
tests/functional/hppa/test_openbsd.py new file +37 -0
@@ -0,0 +1,37 @@ +#!/usr/bin/env python3 +# +# Test that OpenBSD boots on B160L and reaches the installer. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import QemuSystemTest, Asset +from qemu_test import wait_for_console_pattern + + +class OpenBSDB160L(QemuSystemTest): + + ASSET_CD = Asset( + 'https://ftp.eu.openbsd.org/pub/OpenBSD/8.0/hppa/cd80.iso', + '9b3971dc3d2362e5d694495f2c2e10795513b87c9bcca5666df5a2bfea071663') + + def test_openbsd_80_installer(self): + self.set_machine('B160L') + self.require_accelerator('tcg') + cdrom_path = self.ASSET_CD.fetch() + + self.vm.set_console() + self.vm.add_args('-nic', 'none', + '-cdrom', cdrom_path, + '-boot', 'd', + '-no-reboot') + self.vm.launch() + + wait_for_console_pattern(self, 'OpenBSD 8.0 (RAMDISK)', 'panic:') + wait_for_console_pattern( + self, + '(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?', + 'panic:') + + +if __name__ == '__main__': + QemuSystemTest.main()
Signature · 1 line
2.54.0
[PULL for 11.2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address
In reply to Helge DellerFrom: Helge Deller <[email protected]>
Change the CPU HPA for the monarch CPU on the 715 machine to 0xfffa0000 if more than 2 CPUs are configured, as otherwise the second CPU would be on HPA 0xfffc0000 which conflicts with the global broadcast HPA (HPPA_BROADCAST_HPA).
--- hw/hppa/machine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
hw/hppa/machine.c +2 -1
@@ -629,7 +629,8 @@ static void machine_HP_715_init(MachineState *machine)ISABus *isa_bus;/* Create CPUs and RAM. */ - translate =machine_HP_common_init_cpus (machine,0xfffbe000 ); + translate =machine_HP_common_init_cpus (machine, + machine->smp.cpus <=2 ?0xfffbe000 :0xfffa0000 );if (hppa_is_pa20 (&cpu[0 ]->env)) { error_report("The HP 715/64 workstation requires a 32-bit "
Signature · 1 line
2.54.0
From: Helge Deller <[email protected]>
The following changes since commit 2bfbe39d0fff8af881cffe2bab9b615e77807c35:
gitlab-ci: Switch the msys2 job to use ucrt (2026-11-23 09:13:18 -0800)
are available in the Git repository at:
https://github.com/hdeller/qemu-hppa.git tags/hppa-fixes-pull-request
for you to fetch changes up to b6a03b864508c24226d83b06d5a6f0439fcf3fd4:
hw/hppa: adjust CPU HPA on 715 to avoid broadcast address (2026-11-24 22:15:23 +0100)
----------------------------------------------------------------
target/hppa patches
Two small patches to adjust the CPU HPA on the 715 and B160L machines to avoid boot hangs, e.g. with OpenBSD.
Add one new test to check if OpenBSD starts.
----------------------------------------------------------------
Helge Deller (2):
hw/hppa: fix OpenBSD boot on B160L emulation hw/hppa: adjust CPU HPA on 715 to avoid broadcast address
Kirill A. Korinsky (1):
tests/functional/hppa: add OpenBSD CD-ROM boot test for
qemu-system-hppa
hw/hppa/machine.c | 5 ++-- tests/functional/hppa/meson.build | 1 + tests/functional/hppa/test_openbsd.py | 37 +++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100755 tests/functional/hppa/test_openbsd.py
Signature · 1 line
2.54.0
[PULL for 11.2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation
From: Helge Deller <[email protected]>
OpenBSD 8.0 hangs on boot since commit 98c37479afc7 ("target/hppa: Map CPUs at same addresses as on physical machines"):
"Advanced audio (ext.)" at gsc0 (type a sv 7b mod 3 hv d4) offset 4000 not configured "Core Centronics" at gsc0 (type a sv 74 mod 3 hv d0) offset 2000 not configured dino0 at phantomas0 offset ff80000: can't map space
panic: trap: uvm_fault(0xaf8560, 0, 0, 2): 14
syncing disks... done
dump to dev 301 not possible
rebooting...SeaBIOS wants SYSTEM RESET.
On a physical machine, the boot CPU HPA is 0xfffbe000, so let's use 0xfffa0000 instead of the current (invalid) HPA of 0xfff10000 to allow space for multiple CPUs.
--- hw/hppa/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/hppa/machine.c +1 -1
@@ -716,7 +716,7 @@ static void machine_HP_B160L_init(MachineState *machine)PCIBus *pci_bus;/* Create CPUs and RAM. */ - translate =machine_HP_common_init_cpus (machine,0xfff10000 ); + translate =machine_HP_common_init_cpus (machine,0xfffa0000 );if (hppa_is_pa20 (&cpu[0 ]->env)) { error_report("The HP B160L workstation requires a 32-bit "
Signature · 1 line
2.54.0
Richard Henderson
AppliedQuoted 12 lines · Helge Deller
From: Helge Deller<[email protected]>
The following changes since commit
2bfbe39d0fff8af881cffe2bab9b615e77807c35:gitlab-ci: Switch the msys2 job to use ucrt (2026-11-23 09:13:18 -0800)are available in the Git repository at:
https://github.com/hdeller/qemu-hppa.git tags/hppa-fixes-pull-request
for you to fetch changes up to
b6a03b864508c24226d83b06d5a6f0439fcf3fd4:
Quoted 8 lines
hw/hppa: adjust CPU HPA on 715 to avoid broadcast address (2026-11-24 22:15:23 +0100)
----------------------------------------------------------------
target/hppa patchesTwo small patches to adjust the CPU HPA on the 715 and B160L machines to avoid boot hangs, e.g. with OpenBSD.
Add one new test to check if OpenBSD starts.
Applied, thanks.
r~