]> git.proxmox.com Git - mirror_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)
committerCédric Le Goater <clg@kaod.org>
Wed, 6 Sep 2023 09:19:33 +0000 (11:19 +0200)
commit30d0647bcfa99d4a141eaa843a9fb5b091ddbb76
treee165c498c0de007ca76e12c2ef115f3af1c5abab
parent578912ad7312ececb9a88b4c38d406dda640346d
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>
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