mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
semihosting: Cleanup chardev init
Rename qemu_semihosting_connect_chardevs to qemu_semihosting_chardev_init; pass the result directly to qemu_semihosting_console_init. Store the chardev in SemihostingConsole instead of SemihostingConfig, which lets us drop semihosting_get_chardev. Reviewed-by: Luc Michel <lmichel@kalray.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
e7fb6f3205
commit
fb08790b35
5 changed files with 26 additions and 44 deletions
|
@ -51,14 +51,6 @@ static inline const char *semihosting_get_cmdline(void)
|
|||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline Chardev *semihosting_get_chardev(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
static inline void qemu_semihosting_console_init(void)
|
||||
{
|
||||
}
|
||||
#else /* !CONFIG_USER_ONLY */
|
||||
bool semihosting_enabled(void);
|
||||
SemihostingTarget semihosting_get_target(void);
|
||||
|
@ -66,12 +58,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);
|
||||
void qemu_semihosting_console_init(void);
|
||||
void qemu_semihosting_chardev_init(void);
|
||||
void qemu_semihosting_console_init(Chardev *);
|
||||
#endif /* CONFIG_USER_ONLY */
|
||||
|
||||
#endif /* SEMIHOST_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue