[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 46/46] hw/ppc/pnv_psi: Use device_cold_reset() instead of device_l
From: |
David Gibson |
Subject: |
[PULL 46/46] hw/ppc/pnv_psi: Use device_cold_reset() instead of device_legacy_reset() |
Date: |
Tue, 4 May 2021 15:53:12 +1000 |
From: Peter Maydell <peter.maydell@linaro.org>
The pnv_psi.c code uses device_legacy_reset() for two purposes:
* to reset itself from its qemu_register_reset() handler
* to reset a XiveSource object it has
Neither it nor the XiveSource have any qbuses, 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-4-peter.maydell@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---
hw/ppc/pnv_psi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/pnv_psi.c b/hw/ppc/pnv_psi.c
index 3e868c8c8d..292b373f93 100644
--- a/hw/ppc/pnv_psi.c
+++ b/hw/ppc/pnv_psi.c
@@ -466,7 +466,7 @@ static void pnv_psi_reset(DeviceState *dev)
static void pnv_psi_reset_handler(void *dev)
{
- device_legacy_reset(DEVICE(dev));
+ device_cold_reset(DEVICE(dev));
}
static void pnv_psi_realize(DeviceState *dev, Error **errp)
@@ -710,7 +710,7 @@ static void pnv_psi_p9_mmio_write(void *opaque, hwaddr addr,
break;
case PSIHB9_INTERRUPT_CONTROL:
if (val & PSIHB9_IRQ_RESET) {
- device_legacy_reset(DEVICE(&psi9->source));
+ device_cold_reset(DEVICE(&psi9->source));
}
psi->regs[reg] = val;
break;
--
2.31.1
- [PULL 36/46] spapr_drc.c: handle hotunplug errors in drc_unisolate_logical(), (continued)
- [PULL 36/46] spapr_drc.c: handle hotunplug errors in drc_unisolate_logical(), David Gibson, 2021/05/04
- [PULL 35/46] spapr.h: increase FDT_MAX_SIZE, David Gibson, 2021/05/04
- [PULL 37/46] target/ppc: code motion from translate_init.c.inc to gdbstub.c, David Gibson, 2021/05/04
- [PULL 39/46] target/ppc: rework AIL logic in interrupt delivery, David Gibson, 2021/05/04
- [PULL 38/46] target/ppc: move opcode table logic to translate.c, David Gibson, 2021/05/04
- [PULL 40/46] target/ppc: Add POWER10 exception model, David Gibson, 2021/05/04
- [PULL 44/46] hw/intc/spapr_xive: Use device_cold_reset() instead of device_legacy_reset(), David Gibson, 2021/05/04
- [PULL 41/46] target/ppc: Clean up _spr_register et al, David Gibson, 2021/05/04
- [PULL 42/46] target/ppc: Reduce the size of ppc_spr_t, David Gibson, 2021/05/04
- [PULL 43/46] target/ppc: removed VSCR from SPR registration, David Gibson, 2021/05/04
- [PULL 46/46] hw/ppc/pnv_psi: Use device_cold_reset() instead of device_legacy_reset(),
David Gibson <=
- [PULL 45/46] hw/ppc/spapr_vio: Reset TCE table object with device_cold_reset(), David Gibson, 2021/05/04
- Re: [PULL 00/46] ppc-for-6.1 queue 20210504, Peter Maydell, 2021/05/06