Re: [PATCH] hw/timer/armv7m_systick: Update clock source before enabling timer

2022-02-01 Thread Richard Petri
On Tue, Feb 01 2022, Peter Maydell wrote: > Thanks, you've saved me a debugging session! I had a bug report about > a problem with the systick timer a couple of days back, but I hadn't yet > got round to investigating it, and now I don't have to, because this > patch fixes the reported failure :-)

[PATCH] hw/timer/armv7m_systick: Update clock source before enabling timer

2022-02-01 Thread Richard Petri
right away. E.g., code running on the platform setting SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_ENABLE_Msk; should change the clock source and enable the timer on real hardware, but resulted in an error in qemu. Signed-off-by: Richard Petri --- hw/timer/armv7m_systic