qemu-e2k/hw/timer
Peter Maydell c9ebc8c207 hw/timer/armv7m_systick: assert that board code set system_clock_scale
It is the responsibility of board code for an armv7m system to set
system_clock_scale appropriately for the CPU speed of the core.
If it forgets to do this, then QEMU will hang if the guest tries
to use the systick timer in the "tick at the CPU clock frequency" mode.

We forgot that in a couple of our boards (see commits ce4f70e81e,
e7e5a9595a). Add an assertion in the systick reset method so
we don't let any new boards in with the same bug.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200825160847.18091-1-peter.maydell@linaro.org
2020-09-14 14:23:19 +01:00
..
a9gtimer.c
allwinner-a10-pit.c
altera_timer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
arm_mptimer.c
arm_timer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
armv7m_systick.c hw/timer/armv7m_systick: assert that board code set system_clock_scale 2020-09-14 14:23:19 +01:00
aspeed_timer.c
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
cadence_ttc.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
cmsdk-apb-dualtimer.c
cmsdk-apb-timer.c
digic-timer.c
etraxfs_timer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
exynos4210_mct.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
exynos4210_pwm.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
grlib_gptimer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
hpet.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
i8254_common.c
i8254.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
imx_epit.c hw/timer/imx_epit: Avoid assertion when CR.SWR is written 2020-08-03 17:56:11 +01:00
imx_gpt.c
Kconfig hw/timer: avr: Add limited support for 16-bit timer peripheral 2020-07-11 11:02:05 +02:00
lm32_timer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
meson.build meson: convert hw/timer 2020-08-21 06:30:27 -04:00
milkymist-sysctl.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
mips_gictimer.c
mss-timer.c
nrf51_timer.c hw/timer/nrf51_timer: Add trace event of counter value update 2020-05-11 11:05:52 +01:00
omap_gptimer.c
omap_synctimer.c
puv3_ost.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
pxa2xx_timer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
renesas_cmt.c hw/timer: RX62N compare match timer (CMT) 2020-06-22 18:37:12 +02:00
renesas_tmr.c hw/timer: RX62N 8-Bit timer (TMR) 2020-06-22 18:37:12 +02:00
sh_timer.c hw/timer/sh_timer: Remove unused 'qemu/timer.h' include 2020-06-22 18:37:12 +02:00
slavio_timer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
stm32f2xx_timer.c
trace-events trace-events: Delete unused trace points 2020-09-09 17:17:02 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
xilinx_timer.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00