* [PULL for 11.2 0/3] hppa target fixes
@ 2026-11-25 2:58 Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Helge Deller @ 2026-11-25 2:58 UTC (permalink / raw)
To: qemu-devel; +Cc: Richard Henderson, Helge Deller, Kirill A . Korinsky
From: Helge Deller <deller@gmx.de>
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
--
2.54.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PULL for 11.2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation
2026-11-25 2:58 [PULL for 11.2 0/3] hppa target fixes Helge Deller
@ 2026-11-25 2:58 ` Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa Helge Deller
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Helge Deller @ 2026-11-25 2:58 UTC (permalink / raw)
To: qemu-devel; +Cc: Richard Henderson, Helge Deller, Kirill A . Korinsky
From: Helge Deller <deller@gmx.de>
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.
Reported-by: Kirill A. Korinsky <kirill@korins.ky>
Signed-off-by: Helge Deller <deller@gmx.de>
---
hw/hppa/machine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index 3b83968f33..8dd9023058 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -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 "
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PULL for 11.2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa
2026-11-25 2:58 [PULL for 11.2 0/3] hppa target fixes Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
@ 2026-11-25 2:58 ` Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address Helge Deller
2026-11-25 20:55 ` [PULL for 11.2 0/3] hppa target fixes Richard Henderson
3 siblings, 0 replies; 5+ messages in thread
From: Helge Deller @ 2026-11-25 2:58 UTC (permalink / raw)
To: qemu-devel; +Cc: Richard Henderson, Helge Deller, Kirill A . Korinsky
From: "Kirill A. Korinsky" <kirill@korins.ky>
Test that OpenBSD boots on a B160L and reaches the installer.
Signed-off-by: Kirill A. Korinsky <kirill@korins.ky>
Signed-off-by: Helge Deller <deller@gmx.de>
---
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
diff --git a/tests/functional/hppa/meson.build b/tests/functional/hppa/meson.build
index df2f7ccc9c..d34feb69ae 100644
--- a/tests/functional/hppa/meson.build
+++ b/tests/functional/hppa/meson.build
@@ -6,4 +6,5 @@ tests_hppa_system_quick = [
tests_hppa_system_thorough = [
'cdboot',
+ 'openbsd',
]
diff --git a/tests/functional/hppa/test_openbsd.py b/tests/functional/hppa/test_openbsd.py
new file mode 100755
index 0000000000..22ab1e655c
--- /dev/null
+++ b/tests/functional/hppa/test_openbsd.py
@@ -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()
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PULL for 11.2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address
2026-11-25 2:58 [PULL for 11.2 0/3] hppa target fixes Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa Helge Deller
@ 2026-11-25 2:58 ` Helge Deller
2026-11-25 20:55 ` [PULL for 11.2 0/3] hppa target fixes Richard Henderson
3 siblings, 0 replies; 5+ messages in thread
From: Helge Deller @ 2026-11-25 2:58 UTC (permalink / raw)
To: qemu-devel; +Cc: Richard Henderson, Helge Deller, Kirill A . Korinsky
From: Helge Deller <deller@gmx.de>
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).
Signed-off-by: Helge Deller <deller@gmx.de>
---
hw/hppa/machine.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index 8dd9023058..feb526de3b 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -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 "
--
2.54.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PULL for 11.2 0/3] hppa target fixes
2026-11-25 2:58 [PULL for 11.2 0/3] hppa target fixes Helge Deller
` (2 preceding siblings ...)
2026-11-25 2:58 ` [PULL for 11.2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address Helge Deller
@ 2026-11-25 20:55 ` Richard Henderson
3 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 2026-11-25 20:55 UTC (permalink / raw)
To: Helge Deller, qemu-devel; +Cc: Helge Deller, Kirill A . Korinsky
On 11/24/26 18:58, Helge Deller wrote:
> From: Helge Deller<deller@gmx.de>
>
> 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.
Applied, thanks.
r~
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-25 20:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 2:58 [PULL for 11.2 0/3] hppa target fixes Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 1/3] hw/hppa: fix OpenBSD boot on B160L emulation Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 2/3] tests/functional/hppa: add OpenBSD CD-ROM boot test for qemu-system-hppa Helge Deller
2026-11-25 2:58 ` [PULL for 11.2 3/3] hw/hppa: adjust CPU HPA on 715 to avoid broadcast address Helge Deller
2026-11-25 20:55 ` [PULL for 11.2 0/3] hppa target fixes Richard Henderson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.