semihosting: Cleanup chardev init
commitfb08790b35174a98301ecbac4d5234d0cbfebea0
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 1 May 2022 23:59:06 +0000 (1 16:59 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:52 +0000 (28 04:35 +0530)
tree7c817d8d4bd0cef02987c9d21c9e7f2a5b6cc914
parente7fb6f320548c1b0c25d291466a0249ee80d91b6
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>
include/semihosting/semihost.h
semihosting/config.c
semihosting/console.c
softmmu/vl.c
stubs/semihost.c