[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL v2 11/14] semihosting: add qemu_semihosting_console_inc for SY
From: |
Keith Packard |
Subject: |
Re: [PULL v2 11/14] semihosting: add qemu_semihosting_console_inc for SYS_READC |
Date: |
Fri, 24 Jan 2020 10:45:32 -0800 |
Peter Maydell <address@hidden> 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 EOF, we'll
pass that on to the application. Semihost-aware applications may
learn about this 'special' value.
2. Return some ASCII control code (0x04?) in an attempt to tell the
application what has happened.
3. Block forever. This would at least keep the application from
spinning.
--
-keith
signature.asc
Description: PGP signature
- [PULL v2 05/14] travis.yml: Detach build and test steps, (continued)
- [PULL v2 05/14] travis.yml: Detach build and test steps, Alex Bennée, 2020/01/09
- [PULL v2 06/14] travis.yml: duplicate before_script for MacOSX, Alex Bennée, 2020/01/09
- [PULL v2 07/14] travis.yml: install homebrew python for OS X, Alex Bennée, 2020/01/09
- [PULL v2 09/14] target/arm: remove unused EXCP_SEMIHOST leg, Alex Bennée, 2020/01/09
- [PULL v2 08/14] testing: don't nest build for fp-test, Alex Bennée, 2020/01/09
- [PULL v2 13/14] tests/tcg: extract __semi_call into a header and expand, Alex Bennée, 2020/01/09
- [PULL v2 10/14] target/arm: only update pc after semihosting completes, Alex Bennée, 2020/01/09
- [PULL v2 14/14] tests/tcg: add user version of dumb-as-bricks semiconsole test, Alex Bennée, 2020/01/09
- [PULL v2 11/14] semihosting: add qemu_semihosting_console_inc for SYS_READC, Alex Bennée, 2020/01/09
- [PULL v2 12/14] tests/tcg: add a dumb-as-bricks semihosting console test, Alex Bennée, 2020/01/09
- Re: [PULL v2 00/14] testing fixes and semihosting console support, Peter Maydell, 2020/01/10