[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 02/16] semihosting: defer connect_chardevs a little more to use se
From: |
Alex Bennée |
Subject: |
[PULL 02/16] semihosting: defer connect_chardevs a little more to use serialx |
Date: |
Mon, 27 Jul 2020 13:23:43 +0100 |
From: KONRAD Frederic <frederic.konrad@adacore.com>
With that we can just use -semihosting-config chardev=serial0.
[AJB: tweak commit message]
Signed-off-by: KONRAD Frederic <frederic.konrad@adacore.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <1592215252-26742-1-git-send-email-frederic.konrad@adacore.com>
Message-Id: <20200724064509.331-3-alex.bennee@linaro.org>
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 660537a7098..4eb9d1f7fd5 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -4127,8 +4127,6 @@ void qemu_init(int argc, char **argv, char **envp)
qemu_opts_foreach(qemu_find_opts("chardev"),
chardev_init_func, NULL, &error_fatal);
- /* now chardevs have been created we may have semihosting to connect */
- qemu_semihosting_connect_chardevs();
#ifdef CONFIG_VIRTFS
qemu_opts_foreach(qemu_find_opts("fsdev"),
@@ -4279,6 +4277,9 @@ void qemu_init(int argc, char **argv, char **envp)
if (foreach_device_config(DEV_DEBUGCON, debugcon_parse) < 0)
exit(1);
+ /* now chardevs have been created we may have semihosting to connect */
+ qemu_semihosting_connect_chardevs();
+
/* If no default VGA is requested, the default is "none". */
if (default_vga) {
vga_model = get_default_vga_model(machine_class);
--
2.20.1
- [PULL 00/16] various fixes for rc2 (semihosting, tcg, docker, tests/vm), Alex Bennée, 2020/07/27
- [PULL 01/16] shippable: add one more qemu to registry url, Alex Bennée, 2020/07/27
- [PULL 02/16] semihosting: defer connect_chardevs a little more to use serialx,
Alex Bennée <=
- [PULL 03/16] semihosting: don't send the trailing '\0', Alex Bennée, 2020/07/27
- [PULL 04/16] util: add qemu_get_host_physmem utility function, Alex Bennée, 2020/07/27
- [PULL 05/16] util/oslib-win32: add qemu_get_host_physmem implementation, Alex Bennée, 2020/07/27
- [PULL 06/16] accel/tcg: better handle memory constrained systems, Alex Bennée, 2020/07/27
- [PULL 08/16] linux-user: don't use MAP_FIXED in pgd_find_hole_fallback, Alex Bennée, 2020/07/27
- [PULL 07/16] target/i386: floatx80: avoid compound literals in static initializers, Alex Bennée, 2020/07/27