mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -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
|
@ -1917,8 +1917,7 @@ static void qemu_create_late_backends(void)
|
|||
exit(1);
|
||||
|
||||
/* now chardevs have been created we may have semihosting to connect */
|
||||
qemu_semihosting_connect_chardevs();
|
||||
qemu_semihosting_console_init();
|
||||
qemu_semihosting_chardev_init();
|
||||
}
|
||||
|
||||
static void qemu_resolve_machine_memdev(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue