summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorPeter Maydell2022-02-08 18:16:43 +0100
committerPeter Maydell2022-02-21 14:30:20 +0100
commit542e87c7a2d90076b07611987fd3d789865e5ea1 (patch)
treeddd411355744af09ea0ca99b76a846b2c743c4ad /qapi
parentKconfig: Add 'imply I2C_DEVICES' on boards with available i2c bus (diff)
downloadqemu-542e87c7a2d90076b07611987fd3d789865e5ea1.tar.gz
qemu-542e87c7a2d90076b07611987fd3d789865e5ea1.tar.xz
qemu-542e87c7a2d90076b07611987fd3d789865e5ea1.zip
hw/arm/armv7m: Handle disconnected clock inputs
In the armv7m object, handle clock inputs that aren't connected. This is always an error for 'cpuclk'. For 'refclk' it is OK for this to be disconnected, but we need to handle it by not trying to connect a sourceless-clock to the systick device. This fixes a bug where on the mps2-an521 and similar boards (which do not have a refclk) the systick device incorrectly reset with SYST_CSR.CLKSOURCE 0 ("use refclk") rather than 1 ("use CPU clock"). Cc: qemu-stable@nongnu.org Reported-by: Richard Petri <git@rpls.de> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220208171643.3486277-1-peter.maydell@linaro.org
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions