]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw, target: Add ResetType argument to hold and exit phase methods
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Apr 2024 16:08:07 +0000 (17:08 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Apr 2024 09:21:06 +0000 (10:21 +0100)
commitad80e36744785fe9326d4104d98e976822e90cc2
tree99c22bd64e751d16bb2438664641baaa9a93a680
parentaadea887f4429fcc96429b126c254de94317b474
hw, target: Add ResetType argument to hold and exit phase methods

We pass a ResetType argument to the Resettable class enter
phase method, but we don't pass it to hold and exit, even though
the callsites have it readily available. This means that if
a device cared about the ResetType it would need to record it
in the enter phase method to use later on. Pass the type to
all three of the phase methods to avoid having to do that.

Commit created with

  for dir in hw target include; do \
      spatch --macro-file scripts/cocci-macro-file.h \
             --sp-file scripts/coccinelle/reset-type.cocci \
             --keep-comments --smpl-spacing --in-place \
             --include-headers --dir $dir; done

and no manual edits.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Luc Michel <luc.michel@amd.com>
Message-id: 20240412160809.1260625-5-peter.maydell@linaro.org
94 files changed:
hw/adc/npcm7xx_adc.c
hw/arm/pxa2xx_pic.c
hw/arm/smmu-common.c
hw/arm/smmuv3.c
hw/arm/stellaris.c
hw/audio/asc.c
hw/char/cadence_uart.c
hw/char/sifive_uart.c
hw/core/cpu-common.c
hw/core/qdev.c
hw/core/reset.c
hw/core/resettable.c
hw/display/virtio-vga.c
hw/gpio/npcm7xx_gpio.c
hw/gpio/pl061.c
hw/gpio/stm32l4x5_gpio.c
hw/hyperv/vmbus.c
hw/i2c/allwinner-i2c.c
hw/i2c/npcm7xx_smbus.c
hw/input/adb.c
hw/input/ps2.c
hw/intc/arm_gic_common.c
hw/intc/arm_gic_kvm.c
hw/intc/arm_gicv3_common.c
hw/intc/arm_gicv3_its.c
hw/intc/arm_gicv3_its_common.c
hw/intc/arm_gicv3_its_kvm.c
hw/intc/arm_gicv3_kvm.c
hw/intc/xics.c
hw/m68k/q800-glue.c
hw/misc/djmemc.c
hw/misc/iosb.c
hw/misc/mac_via.c
hw/misc/macio/cuda.c
hw/misc/macio/pmu.c
hw/misc/mos6522.c
hw/misc/npcm7xx_mft.c
hw/misc/npcm7xx_pwm.c
hw/misc/stm32l4x5_exti.c
hw/misc/stm32l4x5_rcc.c
hw/misc/stm32l4x5_syscfg.c
hw/misc/xlnx-versal-cframe-reg.c
hw/misc/xlnx-versal-crl.c
hw/misc/xlnx-versal-pmc-iou-slcr.c
hw/misc/xlnx-versal-trng.c
hw/misc/xlnx-versal-xramc.c
hw/misc/xlnx-zynqmp-apu-ctrl.c
hw/misc/xlnx-zynqmp-crf.c
hw/misc/zynq_slcr.c
hw/net/can/xlnx-zynqmp-can.c
hw/net/e1000.c
hw/net/e1000e.c
hw/net/igb.c
hw/net/igbvf.c
hw/nvram/xlnx-bbram.c
hw/nvram/xlnx-versal-efuse-ctrl.c
hw/nvram/xlnx-zynqmp-efuse.c
hw/pci-bridge/cxl_root_port.c
hw/pci-bridge/pcie_root_port.c
hw/pci-host/bonito.c
hw/pci-host/pnv_phb.c
hw/pci-host/pnv_phb3_msi.c
hw/pci/pci.c
hw/rtc/mc146818rtc.c
hw/s390x/css-bridge.c
hw/sensor/adm1266.c
hw/sensor/adm1272.c
hw/sensor/isl_pmbus_vr.c
hw/sensor/max31785.c
hw/sensor/max34451.c
hw/ssi/npcm7xx_fiu.c
hw/timer/etraxfs_timer.c
hw/timer/npcm7xx_timer.c
hw/usb/hcd-dwc2.c
hw/usb/xlnx-versal-usb2-ctrl-regs.c
hw/virtio/virtio-pci.c
include/hw/resettable.h
target/arm/cpu.c
target/avr/cpu.c
target/cris/cpu.c
target/hexagon/cpu.c
target/i386/cpu.c
target/loongarch/cpu.c
target/m68k/cpu.c
target/microblaze/cpu.c
target/mips/cpu.c
target/openrisc/cpu.c
target/ppc/cpu_init.c
target/riscv/cpu.c
target/rx/cpu.c
target/sh4/cpu.c
target/sparc/cpu.c
target/tricore/cpu.c
target/xtensa/cpu.c