diff options
| author | Richard Henderson | 2022-05-01 22:11:45 +0200 |
|---|---|---|
| committer | Richard Henderson | 2022-06-28 01:06:30 +0200 |
| commit | 008e147572863a7a54c54403e626aaed3e50574f (patch) | |
| tree | af60fe601e194d14360d832c6aa5a0c15fe848e8 /include | |
| parent | semihosting: Create qemu_semihosting_console_write (diff) | |
| download | qemu-008e147572863a7a54c54403e626aaed3e50574f.tar.gz qemu-008e147572863a7a54c54403e626aaed3e50574f.tar.xz qemu-008e147572863a7a54c54403e626aaed3e50574f.zip | |
semihosting: Add GuestFDConsole
Add a GuestFDType for connecting to the semihosting console.
Hook up to read, write, isatty, and fstat syscalls.
Note that the arm-specific syscall flen cannot be applied
to the console, because the console is not a descriptor
exposed to the guest.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/semihosting/guestfd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/semihosting/guestfd.h b/include/semihosting/guestfd.h index ef268abe85..a7ea1041ea 100644 --- a/include/semihosting/guestfd.h +++ b/include/semihosting/guestfd.h @@ -13,9 +13,10 @@ typedef enum GuestFDType { GuestFDUnused = 0, - GuestFDHost = 1, - GuestFDGDB = 2, - GuestFDStatic = 3, + GuestFDHost, + GuestFDGDB, + GuestFDStatic, + GuestFDConsole, } GuestFDType; /* |
