Commit 4249709128 for qemu.org
commit 42497091287f8ddbcb7537a8d1f28073430062d0
Author: Keith Monahan <keith@techtravels.org>
Date: Thu Nov 12 15:35:52 2026 -0500
hw/hppa: preload a BTLB entry for the soft power button page
HP-UX 9 reads the soft power button register from its clock interrupt
without mapping it. The guest boots without
-fw_cfg opt/power-button-enable,string=0 and powers off cleanly on
system_powerdown.
Signed-off-by: Keith Monahan <keith@techtravels.org>
Signed-off-by: Helge Deller <deller@gmx.de>
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index f23936fc5b..3b83968f33 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -909,6 +909,7 @@ static void hppa_machine_reset(MachineState *ms, ResetType type)
static const struct { uint32_t start, last; } io_btlb[] = {
{ 0xf0100000, 0xf01fffff }, /* LASI */
{ 0xfff80000, 0xffffffff }, /* central bus */
+ { 0xf00ff000, 0xf00fffff }, /* soft power button register */
};
CPUHPPAState *env = &cpu[0]->env;