summaryrefslogtreecommitdiffstats
path: root/hw/ppc/pegasos2.c
diff options
context:
space:
mode:
authorJason A. Donenfeld2022-10-25 02:43:17 +0200
committerPeter Maydell2022-10-27 12:34:31 +0200
commit7966d70f6f6b188475e67c2c363f19eec3d28c96 (patch)
treebbd0a95d1d8b8c64bb8dbaf37d38e8f85af5ada6 /hw/ppc/pegasos2.c
parenttarget/arm: Use the max page size in a 2-stage ptw (diff)
downloadqemu-7966d70f6f6b188475e67c2c363f19eec3d28c96.tar.gz
qemu-7966d70f6f6b188475e67c2c363f19eec3d28c96.tar.xz
qemu-7966d70f6f6b188475e67c2c363f19eec3d28c96.zip
reset: allow registering handlers that aren't called by snapshot loading
Snapshot loading only expects to call deterministic handlers, not non-deterministic ones. So introduce a way of registering handlers that won't be called when reseting for snapshots. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Message-id: 20221025004327.568476-2-Jason@zx2c4.com [PMM: updated json doc comment with Markus' text; fixed checkpatch style nit] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ppc/pegasos2.c')
-rw-r--r--hw/ppc/pegasos2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ppc/pegasos2.c b/hw/ppc/pegasos2.c
index ecf682b148..bb4d008ba9 100644
--- a/hw/ppc/pegasos2.c
+++ b/hw/ppc/pegasos2.c
@@ -248,14 +248,14 @@ static void pegasos2_pci_config_write(Pegasos2MachineState *pm, int bus,
pegasos2_mv_reg_write(pm, pcicfg + 4, len, val);
}
-static void pegasos2_machine_reset(MachineState *machine)
+static void pegasos2_machine_reset(MachineState *machine, ShutdownCause reason)
{
Pegasos2MachineState *pm = PEGASOS2_MACHINE(machine);
void *fdt;
uint64_t d[2];
int sz;
- qemu_devices_reset();
+ qemu_devices_reset(reason);
if (!pm->vof) {
return; /* Firmware should set up machine so nothing to do */
}