]> git.ipfire.org Git - thirdparty/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)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 17 Jan 2024 07:32:47 +0000 (10:32 +0300)
commit0f5fb24fd760bf0e693d32c6d5d7b22f035a771d
tree8acaed28f82d2fa39e20951012688f57137bf73c
parentaeee512d172c24640d28ee9beffb614273336f7a
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>
(cherry picked from commit ed35afcb331a972210816435d6b1b5de17fc7d4f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/hppa/machine.c