]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/ppc: Reset timebase facilities on machine reset
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Aug 2023 04:19:53 +0000 (14:19 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 25 Sep 2023 20:44:30 +0000 (23:44 +0300)
commitb6fa8e42d14d320af6a045468f294bca2d17aeac
tree642cecc44c8f98aea576b874f205cf0528c9190c
parent1c2343cc6113968766953deb176a6b40b7c164b6
hw/ppc: Reset timebase facilities on machine reset

Lower interrupts, delete timers, and set time facility registers
back to initial state on machine reset.

This is not so important for record-replay since timebase and
decrementer are migrated, but it gives a cleaner reset state.

Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[ clg: checkpatch.pl fixes ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
(cherry picked from commit 30d0647bcfa99d4a141eaa843a9fb5b091ddbb76)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ppc/mac_oldworld.c
hw/ppc/pegasos2.c
hw/ppc/pnv_core.c
hw/ppc/ppc.c
hw/ppc/prep.c
hw/ppc/spapr_cpu_core.c
include/hw/ppc/ppc.h