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

Reply via email to