Skip to content

Commit 619985e

Browse files
KONRAD Fredericstsquad
authored andcommitted
semihosting: defer connect_chardevs a little more to use serialx
With that we can just use -semihosting-config chardev=serial0. [AJB: tweak commit message] Signed-off-by: KONRAD Frederic <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]> Message-Id: <[email protected]>
1 parent 3b6b499 commit 619985e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

softmmu/vl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,8 +4127,6 @@ void qemu_init(int argc, char **argv, char **envp)
41274127

41284128
qemu_opts_foreach(qemu_find_opts("chardev"),
41294129
chardev_init_func, NULL, &error_fatal);
4130-
/* now chardevs have been created we may have semihosting to connect */
4131-
qemu_semihosting_connect_chardevs();
41324130

41334131
#ifdef CONFIG_VIRTFS
41344132
qemu_opts_foreach(qemu_find_opts("fsdev"),
@@ -4279,6 +4277,9 @@ void qemu_init(int argc, char **argv, char **envp)
42794277
if (foreach_device_config(DEV_DEBUGCON, debugcon_parse) < 0)
42804278
exit(1);
42814279

4280+
/* now chardevs have been created we may have semihosting to connect */
4281+
qemu_semihosting_connect_chardevs();
4282+
42824283
/* If no default VGA is requested, the default is "none". */
42834284
if (default_vga) {
42844285
vga_model = get_default_vga_model(machine_class);

0 commit comments

Comments
 (0)