Re: [PULL v2 11/14] semihosting: add qemu_semihosting_console_inc for SYS_READC

2020-01-24 Thread Keith Packard
Peter Maydell writes: > I'm not sure what we should do with EOF, but presumably > we should handle it in some way. There's no correct answer here, which is why the current implementation just ignores it. Here are a couple of options: 1. Just return whatever getchar() provides; if it returns EO

Re: [PULL v2 11/14] semihosting: add qemu_semihosting_console_inc for SYS_READC

2020-01-24 Thread Peter Maydell
On Thu, 9 Jan 2020 at 14:19, Alex Bennée wrote: > > From: Keith Packard > > Provides a blocking call to read a character from the console using > semihosting.chardev, if specified. This takes some careful command > line options to use stdio successfully as the serial ports, monitor > and semihost