diff options
author | Damien Hedde | 2020-01-30 17:02:03 +0100 |
---|---|---|
committer | Peter Maydell | 2020-01-30 17:02:03 +0100 |
commit | f703a04ce558ac3c7c0587a2d919c39efb8ca3ba (patch) | |
tree | dc89c0445826aeda40f29c5129a634d48fc7afb9 /hw/ppc/spapr_vio.c | |
parent | hw/arm/raspi: Remove obsolete use of -smp to set the soc 'enabled-cpus' (diff) | |
download | qemu-f703a04ce558ac3c7c0587a2d919c39efb8ca3ba.tar.gz qemu-f703a04ce558ac3c7c0587a2d919c39efb8ca3ba.tar.xz qemu-f703a04ce558ac3c7c0587a2d919c39efb8ca3ba.zip |
add device_legacy_reset function to prepare for reset api change
Provide a temporary device_legacy_reset function doing what
device_reset does to prepare for the transition with Resettable
API.
All occurrence of device_reset in the code tree are also replaced
by device_legacy_reset.
The new resettable API has different prototype and semantics
(resetting child buses as well as the specified device). Subsequent
commits will make the changeover for each call site individually; once
that is complete device_legacy_reset() will be removed.
Signed-off-by: Damien Hedde <damien.hedde@greensocs.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200123132823.1117486-2-damien.hedde@greensocs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/ppc/spapr_vio.c')
-rw-r--r-- | hw/ppc/spapr_vio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c index 554de9930d..f14944e900 100644 --- a/hw/ppc/spapr_vio.c +++ b/hw/ppc/spapr_vio.c @@ -304,7 +304,7 @@ int spapr_vio_send_crq(SpaprVioDevice *dev, uint8_t *crq) static void spapr_vio_quiesce_one(SpaprVioDevice *dev) { if (dev->tcet) { - device_reset(DEVICE(dev->tcet)); + device_legacy_reset(DEVICE(dev->tcet)); } free_crq(dev); } |