]> git.proxmox.com Git - mirror_qemu.git/commit
hw/hppa: Move software power button address back into PDC
authorHelge Deller <deller@gmx.de>
Wed, 3 Jan 2024 19:10:01 +0000 (20:10 +0100)
committerHelge Deller <deller@gmx.de>
Sat, 13 Jan 2024 05:48:14 +0000 (06:48 +0100)
commited35afcb331a972210816435d6b1b5de17fc7d4f
treead4b54bbbdf2536ee4ad402d10e9cf7bc20f00b5
parent6ce18d530638f6e4eb87ef8737c634e34362ad2b
hw/hppa: Move software power button address back into PDC

The various operating systems (e.g. Linux, NetBSD) have issues
mapping the power button when it's stored in page zero.
NetBSD even crashes, because it fails to map that page and then
accesses unmapped memory.

Since we now have a consistent memory mapping of PDC in 32-bit
and 64-bit address space (the lower 32-bits of the address are in
sync) the power button can be moved back to PDC space.

This patch fixes the power button on Linux, NetBSD and HP-UX.

Signed-off-by: Helge Deller <deller@gmx.de>
Tested-by: Bruno Haible <bruno@clisp.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
hw/hppa/machine.c