Re: [PATCH v2 4/9] hw/char/pl011: Really use RX FIFO depth

2025-02-23 Thread Richard Henderson
On 2/20/25 01:28, Philippe Mathieu-Daudé wrote: While we model a 16-elements RX FIFO since the PL011 model was introduced in commit cdbdb648b7c ("ARM Versatile Platform Baseboard emulation"), we only read 1 char at a time! Have the IOCanReadHandler handler return how many elements are available,

[PATCH v2 4/9] hw/char/pl011: Really use RX FIFO depth

2025-02-20 Thread Philippe Mathieu-Daudé
While we model a 16-elements RX FIFO since the PL011 model was introduced in commit cdbdb648b7c ("ARM Versatile Platform Baseboard emulation"), we only read 1 char at a time! Have the IOCanReadHandler handler return how many elements are available, and use that in the IOReadHandler handler. Examp