Hi Phil, Interesting that that's the case for the PL011. I've run into situations before where turns out it was never enabled and it was still printing, discovered this after turning guest errors on. Do people usually run with guest errors on?
At least for this UART it doesn't print until it's enabled, (and if you're checking the TXFULL bit then the guest is essentially deadlocked if polling), so that's not an issue. Julia On Thu, 18 Dec 2025, at 01:59, Philippe Mathieu-Daudé wrote: > Hi Julia, > > On 17/12/25 08:10, julia wrote: >> I don't want to admit how many hours I spent trying to figure out why >> nothing was being printed (as the enable-ing code hadn't yet run, >> even thought it existed). > > You are not alone, few of us have been there too :/ > > This is why I added this commit for the PL011: > https://gitlab.com/qemu-project/qemu/-/commit/abf2b6a0 > but it had to be reverted, see: > https://gitlab.com/qemu-project/qemu/-/commit/5b14454d > >> >> Signed-off-by: julia <[email protected]> >> --- >> hw/char/cmsdk-apb-uart.c | 8 ++++++++ >> 1 file changed, 8 insertions(+) > > Anyway for your patch: > Reviewed-by: Philippe Mathieu-Daudé <[email protected]> > > Regards, > > Phil.
