diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2023-08-08 14:19:53 +1000 |
---|---|---|
committer | Cédric Le Goater <clg@kaod.org> | 2023-09-06 11:19:33 +0200 |
commit | 30d0647bcfa99d4a141eaa843a9fb5b091ddbb76 (patch) | |
tree | e165c498c0de007ca76e12c2ef115f3af1c5abab /hw/ppc/mac_oldworld.c | |
parent | 578912ad7312ececb9a88b4c38d406dda640346d (diff) | |
download | qemu-30d0647bcfa99d4a141eaa843a9fb5b091ddbb76.zip qemu-30d0647bcfa99d4a141eaa843a9fb5b091ddbb76.tar.gz qemu-30d0647bcfa99d4a141eaa843a9fb5b091ddbb76.tar.bz2 |
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>
Diffstat (limited to 'hw/ppc/mac_oldworld.c')
-rw-r--r-- | hw/ppc/mac_oldworld.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/mac_oldworld.c b/hw/ppc/mac_oldworld.c index 510ff0e..9acc7ad 100644 --- a/hw/ppc/mac_oldworld.c +++ b/hw/ppc/mac_oldworld.c @@ -81,6 +81,7 @@ static void ppc_heathrow_reset(void *opaque) { PowerPCCPU *cpu = opaque; + cpu_ppc_tb_reset(&cpu->env); cpu_reset(CPU(cpu)); } |