mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
a331c6d774
commit
4e7f9032cf
6 changed files with 51 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue