assert in stm32l4x5_rcc
-
Operating system: Ubuntu 22.04.4 LTS
-
OS/kernel version: Linux 6.5.0-25-generic
-
Architecture: aarch64
-
QEMU flavor: 9.0.0
-
QEMU version: commit 7e1c0047
-
QEMU command line:
cat << EOF | qemu-system-aarch64 -display \ none -machine accel=qtest, -m 512M -machine b-l475e-iot01a -qtest stdio writeq 0x40021008 0xffffffff EOF
Description of problem
The following log reveals it:
qemu-system-aarch64: ../hw/misc/stm32l4x5_rcc.c:546: void rcc_update_cfgr_register(Stm32l4x5RccState *): Assertion `val <= 0b100' failed.
Aborted
Steps to reproduce
cat << EOF | qemu-system-aarch64 -display \
none -machine accel=qtest, -m 512M -machine b-l475e-iot01a -qtest stdio
writeq 0x40021008 0xffffffff
EOF
Edited by Zheyu Ma