diff options
author | Helge Deller <deller@gmx.de> | 2023-06-23 08:24:30 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-06-24 13:39:48 +0200 |
commit | 50ba97e928b44ff5bc731c9ffe68d86acbe44639 (patch) | |
tree | b5592a212ce60eee0f6dd696afc789ca5baf785a /tests/perf | |
parent | b455ce4c2f300c8ba47cba7232dd03261368a4cb (diff) | |
download | qemu-50ba97e928b44ff5bc731c9ffe68d86acbe44639.zip qemu-50ba97e928b44ff5bc731c9ffe68d86acbe44639.tar.gz qemu-50ba97e928b44ff5bc731c9ffe68d86acbe44639.tar.bz2 |
target/hppa: Fix OS reboot issues
When the OS triggers a reboot, the reset helper function sends a
qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET) together with an
EXCP_HLT exception to halt the CPUs.
So, at reboot when initializing the CPUs again, make sure to set all
instruction pointers to the firmware entry point, disable any interrupts,
disable data and instruction translations, enable PSW_Q bit and tell qemu
to unhalt (halted=0) the CPUs again.
This fixes the various reboot issues which were seen when rebooting a
Linux VM, including the case where even the monarch CPU has been virtually
halted from the OS (e.g. via "chcpu -d 0" inside the Linux VM).
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tests/perf')
0 files changed, 0 insertions, 0 deletions