qemu/hw/nvram
Peter Maydell ad80e36744 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
2024-04-25 10:21:06 +01:00
..
chrp_nvram.c nvram: Exit QEMU if NVRAM cannot contain all -prom-env data 2020-08-14 13:34:31 +10:00
ds1225y.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
eeprom93xx.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
eeprom_at24c.c hw/other: spelling fixes 2023-09-21 11:31:16 +03:00
fw_cfg-acpi.c acpi: Clean up includes 2024-01-30 21:20:20 +03:00
fw_cfg-interface.c hw/nvram: Always register FW_CFG_DATA_GENERATOR_INTERFACE 2020-10-12 11:50:20 -04:00
fw_cfg.c hw/sysbus: Inline and remove sysbus_add_io() 2024-02-22 12:47:40 +01:00
Kconfig hw/nvram: Introduce Xilinx battery-backed ram 2021-09-30 13:42:10 +01:00
mac_nvram.c hw/nvram/mac_nvram: Report failure to write data 2024-03-25 10:41:01 +00:00
meson.build hw/arm/virt-acpi-build.c: Migrate fw_cfg creation to common location 2024-01-10 18:47:46 +10:00
npcm7xx_otp.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
nrf51_nvm.c hw/nvram: Simplify memory_region_init_rom_device() calls 2024-01-05 16:20:15 +01:00
spapr_nvram.c hw/nvram: Constify VMState 2023-12-30 07:38:06 +11:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
xlnx-bbram.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00
xlnx-efuse-crc.c hw/nvram: Introduce Xilinx eFuse QOM 2021-09-30 13:42:09 +01:00
xlnx-efuse.c hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize() 2023-11-27 15:27:43 +00:00
xlnx-versal-efuse-cache.c hw/nvram: Introduce Xilinx Versal eFuse device 2021-09-30 13:42:10 +01:00
xlnx-versal-efuse-ctrl.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00
xlnx-zynqmp-efuse.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00