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/spapr_cpu_core.c | |
| parent | 578912ad7312ececb9a88b4c38d406dda640346d (diff) | |
| download | focaccia-qemu-30d0647bcfa99d4a141eaa843a9fb5b091ddbb76.tar.gz focaccia-qemu-30d0647bcfa99d4a141eaa843a9fb5b091ddbb76.zip | |
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/spapr_cpu_core.c')
| -rw-r--r-- | hw/ppc/spapr_cpu_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index b482d9754a..91fae56573 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -74,6 +74,8 @@ static void spapr_reset_vcpu(PowerPCCPU *cpu) kvm_check_mmu(cpu, &error_fatal); + cpu_ppc_tb_reset(env); + spapr_irq_cpu_intc_reset(spapr, cpu); } |