qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Questions about clocks emulation
@ 2023-12-12 13:05 Arnaud Minier
  2023-12-13 19:13 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaud Minier @ 2023-12-12 13:05 UTC (permalink / raw)
  To: qemu-devel

Hi all,

I tried to implement the RCC (Reset and Clock Control) for the STM32L4x5_SoC but ran into some problems regarding clock emulation in Qemu.
In this SoC, it is possible to change the source of several clocks used for devices like the CPU, the USART, and approximately every other device on the SoC.
This change can be made at runtime by writing into a specific register.
I tried to model this by using the clocks in hw/core/clock.c by I noticed that it is not possible to change a clock's source once it has been assigned (see clock_set_source()).
It prevents me from implementing a clock tree similar to the one on the hardware.

Is this limitation there for some reason or has it simply not been implemented?

Thanks,
Arnaud Minier


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-14  7:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 13:05 Questions about clocks emulation Arnaud Minier
2023-12-13 19:13 ` Philippe Mathieu-Daudé
2023-12-14  7:45   ` Luc Michel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).