diff options
author | Inès Varhol <ines.varhol@telecom-paris.fr> | 2024-05-23 16:06:20 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-05-28 14:20:48 +0100 |
commit | cd2a2788a92c39aa6405e2ff7a95aca02d036757 (patch) | |
tree | af3d4cf3819f302ec859a1f8c8addaa888e49031 | |
parent | 03935f9272e757724cd99ca3842be3ddbfeecc77 (diff) | |
download | qemu-cd2a2788a92c39aa6405e2ff7a95aca02d036757.zip qemu-cd2a2788a92c39aa6405e2ff7a95aca02d036757.tar.gz qemu-cd2a2788a92c39aa6405e2ff7a95aca02d036757.tar.bz2 |
hw/char: Correct STM32L4x5 usart register CR2 field ADD_0 size
Signed-off-by: Arnaud Minier <arnaud.minier@telecom-paris.fr>
Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>
Message-id: 20240505141613.387508-1-ines.varhol@telecom-paris.fr
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/char/stm32l4x5_usart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/stm32l4x5_usart.c b/hw/char/stm32l4x5_usart.c index 02f6663..fc5dcac 100644 --- a/hw/char/stm32l4x5_usart.c +++ b/hw/char/stm32l4x5_usart.c @@ -56,7 +56,7 @@ REG32(CR1, 0x00) FIELD(CR1, UE, 0, 1) /* USART enable */ REG32(CR2, 0x04) FIELD(CR2, ADD_1, 28, 4) /* ADD[7:4] */ - FIELD(CR2, ADD_0, 24, 1) /* ADD[3:0] */ + FIELD(CR2, ADD_0, 24, 4) /* ADD[3:0] */ FIELD(CR2, RTOEN, 23, 1) /* Receiver timeout enable */ FIELD(CR2, ABRMOD, 21, 2) /* Auto baud rate mode */ FIELD(CR2, ABREN, 20, 1) /* Auto baud rate enable */ |