Re: [PATCH] hw/char/pl011: ensure UARTIBRD register is 16-bit

2024-07-01 Thread Peter Maydell
On Sun, 30 Jun 2024 at 18:00, Zheyu Ma wrote: > > The PL011 TRM says that "The 16-bit integer is written to the Integer Baud > Rate > Register, UARTIBRD". Updated the handling of the UARTIBRD register to ensure > only 16-bit values are written to it. Thanks for this patch. I think we could

[PATCH] hw/char/pl011: ensure UARTIBRD register is 16-bit

2024-06-30 Thread Zheyu Ma
The PL011 TRM says that "The 16-bit integer is written to the Integer Baud Rate Register, UARTIBRD". Updated the handling of the UARTIBRD register to ensure only 16-bit values are written to it. ASAN log: ==2973125==ERROR: AddressSanitizer: FPE on unknown address 0x55f72629b348 (pc