From patchwork Fri Jul 24 06:44:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 247111 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2183381ilg; Thu, 23 Jul 2020 23:46:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm5fqg3p2kRm/sS3V/j/tGkwhooVzCZpI9tA/m5daAqU+Umr55khnlZ/VIWS12BiYPJZ9g X-Received: by 2002:a25:ad50:: with SMTP id l16mr13429451ybe.110.1595573193538; Thu, 23 Jul 2020 23:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595573193; cv=none; d=google.com; s=arc-20160816; b=YtqECoVvIUsmAqFhrUMz5ZFcF5MHjlHcPdxSC+u17k7fYm64e+LsV/AyHjR7f+Dhut JypJgyp5JbN6yg0JnQO+tcFgB8QeLh+XkRa8ovwtxO5+qy2846plIhow1NyNSRrFNF3J WdASeZCYFf9HvQ+i8w0R+ZhKMdfRMAUVLTUIvCsupqJLI87qyh4gKyHhQ9MtvQ1incVT Re2ygc5oaGBCh6XoLQr0Akhh9u2ZU5r1aAd556OByYx8MX95cpZI43gyh4GN1/LjxlbR GN/FIrO0/tIsGacSz0PRtUkGa+7i42OymdMI72qAra6nLaHdGSUmDmd60fzIi7wHghBq dLzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=XVrIJpB2y9Ni5lFZGxJn8qTVzv2l9retbWFqQwZwYzA=; b=U3Y7ktBKdsyIXzJFd6bekjCbsxAa8DHcutctJgBENORuXqVZBSVuu3Ugcfu0SDbjUG NBj7OWf4HPu6hNIxZPzfJV+voNhpHwa1mlmvhw1u1tVuj7FiGTzBXjfNCKqrEQaElhra p58aWgI5Btn5dvw5cx0jnopeKfbfNxgSPps7/vfGPmBZo3pEdyvxDr+L2CahutHPKyEW Uh24KC7hP94qngxFYEtGY2yMGHoGaiWiMkBmZlyCvObaFDEG4Nqd0HiOXC0THvlF1DrC U7mSHZLspDSJhEI5zuKQdKLjfaw09qgEYKVgLyDu1xVKi7Xpd0H9q2c3iSAVdFkEL+3H 6xvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=of2nc2ak; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r1si5117374ybs.458.2020.07.23.23.46.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Jul 2020 23:46:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=of2nc2ak; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyrTU-00041O-VF for patch@linaro.org; Fri, 24 Jul 2020 02:46:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyrSG-00040Q-M4 for qemu-devel@nongnu.org; Fri, 24 Jul 2020 02:45:16 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:40924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyrSE-0000FK-UV for qemu-devel@nongnu.org; Fri, 24 Jul 2020 02:45:16 -0400 Received: by mail-wm1-x341.google.com with SMTP id f139so7229631wmf.5 for ; Thu, 23 Jul 2020 23:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XVrIJpB2y9Ni5lFZGxJn8qTVzv2l9retbWFqQwZwYzA=; b=of2nc2ak7G3R/14eKYDrekzPb0Le2mZyrw4iQ3dOsj+37n4JVMpf11bPTrvpKYl33F pvLwYEJQPvMRmNNzdyXIM7++GW4iQz3x4qhc/+nwaamGfEqBaJFRzMCXrZzeABsOY/a3 PgWRDHXrVSFrl1qWxUwk0P6UZxC9FLfSWYfX2vJlwh7bgXF8tzSQQprJTMDTY1ZeIdrp 0x6149B7vFtYGWd/9sjRCxlPCTJd8DgUvq4Bu1B3oRQnXendRWVKKnqwxNuIOyu4Pp9o pC0jREXLgIMoaxczrG55YIy4ILSF6D/lzBLRDXZJ8drdyv/PGbPxytba/Zx3q29+dlxe vQIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XVrIJpB2y9Ni5lFZGxJn8qTVzv2l9retbWFqQwZwYzA=; b=HM5FIGHyEY5hNSdzY2/rIxFS+Wk4l41phwJaW6A3HvUGZvJI68SFBzG0L3oRdgeqFu p4AIHCphlMmGlygQdNqdw9jc7L3EEoXLvBWZWO2/qu5OgJJ/GTG2PXyH75RQr3o0k1gT xobllPphzVaAPvDR1W408CGMX1rJGg0FqYK3H39g3togi7ZuPlNDsTXcZVBrsDwu976r fdvZ49kIj8+6Awwu3pLMB/90blT4jDsOZ5LyoDzm3XilJ7/GOXQ/UOdxmBy419yRLsmp 3T4ysVLp1gCBpWIIgcf7iahfPitOJWI3HHUHgjxGWSQlHpesvu/43jgnJdLJohOGtEga svSg== X-Gm-Message-State: AOAM530cVBJfkWjxAffcg8nMxegVkZdPC56h1nNbi/MUlwt6U5oCLtZS h5ydCLibDQLrEda/sXfMhQRZhQ== X-Received: by 2002:a1c:2c0b:: with SMTP id s11mr5782235wms.48.1595573113421; Thu, 23 Jul 2020 23:45:13 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id v29sm151317wrv.51.2020.07.23.23.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 23:45:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 612551FF8C; Fri, 24 Jul 2020 07:45:09 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 02/16] semihosting: defer connect_chardevs a little more to use serialx Date: Fri, 24 Jul 2020 07:44:55 +0100 Message-Id: <20200724064509.331-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200724064509.331-1-alex.bennee@linaro.org> References: <20200724064509.331-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::341; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x341.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, berrange@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, KONRAD Frederic , cota@braap.org, Paolo Bonzini , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: KONRAD Frederic With that we can just use -semihosting-config chardev=serial0. [AJB: tweak commit message] Signed-off-by: KONRAD Frederic Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <1592215252-26742-1-git-send-email-frederic.konrad@adacore.com> Message-Id: <20200717105139.25293-3-alex.bennee@linaro.org> Message-Id: <20200722062902.24509-3-alex.bennee@linaro.org> --- softmmu/vl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/softmmu/vl.c b/softmmu/vl.c index 34162415579..295459adc95 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"), @@ -4277,6 +4275,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);