]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/intc/spapr_xive: Use device_cold_reset() instead of device_legacy_reset()
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 3 May 2021 15:18:47 +0000 (16:18 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 4 May 2021 03:12:59 +0000 (13:12 +1000)
The h_int_reset() function resets the XIVE interrupt controller via
device_legacy_reset().  We know that the interrupt controller does
not have a qbus of its own, so the new device_cold_reset() function
(which resets both the device and its child buses) is equivalent here
to device_legacy_reset() and we can just switch to the new API.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210503151849.8766-2-peter.maydell@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive.c

index 801bc193416000e58ddc1c0047f3778b51279c37..89cfa018f5987e3b4ccb9987172ca2b9b357b825 100644 (file)
@@ -1798,7 +1798,7 @@ static target_ulong h_int_reset(PowerPCCPU *cpu,
         return H_PARAMETER;
     }
 
-    device_legacy_reset(DEVICE(xive));
+    device_cold_reset(DEVICE(xive));
 
     if (spapr_xive_in_kernel(xive)) {
         Error *local_err = NULL;