diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2019-05-14 15:30:14 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2019-05-28 10:28:50 +0100 |
commit | 4e7f9032cf9bba8558b0fd5ab6a1366d6d7b8ee0 (patch) | |
tree | b260754fa6471caa695fe9e6ac47a454fc5ccb43 /include/hw | |
parent | a331c6d774123fd3fdb916e58539920727dd2cbd (diff) | |
download | qemu-4e7f9032cf9bba8558b0fd5ab6a1366d6d7b8ee0.zip qemu-4e7f9032cf9bba8558b0fd5ab6a1366d6d7b8ee0.tar.gz qemu-4e7f9032cf9bba8558b0fd5ab6a1366d6d7b8ee0.tar.bz2 |
semihosting: enable chardev backed output for console
It will be useful for a number of use-cases to be able to re-direct
output to a file like we do with serial output. This does the wiring
to allow us to treat then semihosting console like just another
character output device.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/semihosting/semihost.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/semihosting/semihost.h b/include/hw/semihosting/semihost.h index 07ea40a..60fc42d 100644 --- a/include/hw/semihosting/semihost.h +++ b/include/hw/semihosting/semihost.h @@ -51,6 +51,11 @@ static inline const char *semihosting_get_cmdline(void) { return NULL; } + +static inline Chardev *semihosting_get_chardev(void) +{ + return NULL; +} #else /* !CONFIG_USER_ONLY */ bool semihosting_enabled(void); SemihostingTarget semihosting_get_target(void); @@ -58,9 +63,11 @@ const char *semihosting_get_arg(int i); int semihosting_get_argc(void); const char *semihosting_get_cmdline(void); void semihosting_arg_fallback(const char *file, const char *cmd); +Chardev *semihosting_get_chardev(void); /* for vl.c hooks */ void qemu_semihosting_enable(void); int qemu_semihosting_config_options(const char *opt); +void qemu_semihosting_connect_chardevs(void); #endif /* CONFIG_USER_ONLY */ #endif /* SEMIHOST_H */ |