Searched hist:"20516 e8d0e07739bd2e9bc8f51f319e37a9bc86c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/hw/misc/ |
H A D | stm32l4x5_rcc.c | diff 20516e8d0e07739bd2e9bc8f51f319e37a9bc86c Tue Jun 18 08:55:50 CDT 2024 Zheyu Ma <zheyuma97@gmail.com> hw/misc/stm32l4x5_rcc: Add validation for MCOPRE and MCOSEL values
This commit adds validation checks for the MCOPRE and MCOSEL values in the rcc_update_cfgr_register function. If the MCOPRE value exceeds 0b100 or the MCOSEL value exceeds 0b111, an error is logged and the corresponding clock mux is disabled. This helps in identifying and handling invalid configurations in the RCC registers.
Reproducer: cat << EOF | qemu-system-aarch64 -display \ none -machine accel=qtest, -m 512M -machine b-l475e-iot01a -qtest \ stdio writeq 0x40021008 0xffffffff EOF
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2356 Signed-off-by: Zheyu Ma <zheyuma97@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|