hw/hppa: Fix booting Linux kernel with initrd
authorHelge Deller <deller@gmx.de>
Wed, 22 Jan 2025 16:15:00 +0000 (17:15 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 24 Jan 2025 19:51:53 +0000 (20:51 +0100)
commitc656f293dfe31661e4252d78cfa6cab6372ad5ca
treef5d201387134a729dbe88e839e44b75b45a1b74a
parentd0ad4118abb1434d6788d9ac5a1612103f88d360
hw/hppa: Fix booting Linux kernel with initrd

Commit 20f7b890173b ("hw/hppa: Reset vCPUs calling resettable_reset()")
broke booting the Linux kernel with initrd which may have been provided
on the command line. The problem is, that the mentioned commit zeroes
out initial registers which were preset with addresses for the Linux
kernel and initrd.

Fix it by adding proper variables which are set shortly before starting
the firmware.

Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: 20f7b890173b ("hw/hppa: Reset vCPUs calling resettable_reset()")
Cc: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
hw/hppa/machine.c
target/hppa/cpu.h