mirror_qemu/hw/timer
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
..
Kconfig hw/timer: Remove the ALTERA_TIMER model 2024-04-24 16:03:38 +02:00
a9gtimer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
allwinner-a10-pit.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
arm_mptimer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
arm_timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
armv7m_systick.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
aspeed_timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
avr_timer16.c hw/timer: avr: Add limited support for 16-bit timer peripheral 2020-07-11 11:02:05 +02:00
bcm2835_systmr.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
cadence_ttc.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
cmsdk-apb-dualtimer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
cmsdk-apb-timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
digic-timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
etraxfs_timer.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00
exynos4210_mct.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
exynos4210_pwm.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
grlib_gptimer.c hw/sparc/grlib: split out the headers for each peripherals 2024-02-15 16:58:46 +01:00
hpet.c hw/timer: Move HPET_INTCAP definition to "hpet.h" 2024-02-20 20:34:21 +03:00
i8254.c hw/timer/i8254_common: Share "iobase" property via base class 2023-06-05 07:43:23 +01:00
i8254_common.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
ibex_timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
imx_epit.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
imx_gpt.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
meson.build hw/timer: Remove the ALTERA_TIMER model 2024-04-24 16:03:38 +02:00
mips_gictimer.c hw: Do not include hw/sysbus.h if it is not necessary 2021-05-02 17:24:50 +02:00
mss-timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
npcm7xx_timer.c hw, target: Add ResetType argument to hold and exit phase methods 2024-04-25 10:21:06 +01:00
nrf51_timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
omap_gptimer.c hw/arm/omap: Drop useless casts from void * to pointer 2023-01-12 17:15:09 +00:00
omap_synctimer.c hw/arm/omap: Drop useless casts from void * to pointer 2023-01-12 17:15:09 +00:00
pxa2xx_timer.c misc: pxa2xx_timer: replace qemu_system_reset_request() call with watchdog_perform_action() 2024-02-27 13:01:41 +00:00
renesas_cmt.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
renesas_tmr.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
sh_timer.c ptimer: Rename PTIMER_POLICY_DEFAULT to PTIMER_POLICY_LEGACY 2022-05-19 16:19:03 +01:00
sifive_pwm.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
slavio_timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
sse-counter.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
sse-timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
stellaris-gptm.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
stm32f2xx_timer.c hw/timer: Constify VMState 2023-12-30 07:38:06 +11:00
trace-events hw/timer/hpet: Convert DPRINTF to trace events 2024-01-19 12:28:10 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
xilinx_timer.c hw/timer/xilinx_timer: Use XpsTimerState instead of 'struct timerblock' 2023-01-12 17:15:09 +00:00