From patchwork Tue Jul 12 20:53:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 589803 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5817:0:0:0:0 with SMTP id j23csp675376max; Tue, 12 Jul 2022 13:58:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u00uc6n+62LBjQFH+8E4bVaR5DjKW6xqE7pM3D3i7i0vVAK5yzfYlQtVLF8kMnBLcR6z7z X-Received: by 2002:a05:622a:28c:b0:31b:f536:942b with SMTP id z12-20020a05622a028c00b0031bf536942bmr20151957qtw.654.1657659533175; Tue, 12 Jul 2022 13:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657659533; cv=none; d=google.com; s=arc-20160816; b=z5oaWXRm6wUpvWU+/+WualCk0K19EU+Vpfz8CHz//TU2eARDl/YTe6otuT4F46snIO MhAR44hux0TTPZAfV8AIUjXRKZNSN0FYAEO80BIdc5FaLusaLohapaWVaNUdqvk+W+WJ lk2nYjLJifkCP3Ol/ti931TINC1xQizUBqcJxwMqIlPN9OueGfF+78ndjye2Qut7c8wA XXRrl9iNx3QhfCdspDeY69+ImwjT03siQJ4jJPmg+k+UysAEmUEapqYCloyNrFzkhcju BmY7Q1+GcG5iiJ4D+ryAimVrU0ls6lLY76RwyW+kGkwFO3rBsSHAka+lEx33uSYvAVUg s7cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=from:reply-to:sender:errors-to: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:cc:to:dkim-signature; bh=0pu9Y3XzRXbWbXaSGS52OJ20ieZtVBHvHSmSmKTWtx8=; b=bfsEW8Vs4+lD0aj/TdLhdOH+a0ggjMlP/eiKFHjIZMUXwR34Dx62ZkwLJK8HUp+drK IFXUCD7WmujZvJDw5KcfabnRo+eV6U5iXCK9wjiJiVcy8gRcyjS2L6mCwy7TVm9hGGxy Irtp2e7e9Yccb4vLMTn3tX14kF5tp2ddh9IIBx2i3flkC8l9qYNLALH4nbAtEYYlXbJC zGtpB7ZUxNg3ACOT7JF++N8T6CdkrFY0PUY4MJzGL+23K4kiU5Nv+czA7RZ+BLx7GXm5 19IwcfEzs/vUtqTP1uXLsL3Su7f11lreMbQW3PyrVCSvQyeFLU70j3asWzIvFdlphtXz X2fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b="Vb/vDw/T"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bs12-20020ac86f0c000000b0031eba48ba42si3040975qtb.227.2022.07.12.13.58.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Jul 2022 13:58:53 -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=@gmail.com header.s=20210112 header.b="Vb/vDw/T"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nongnu.org Received: from localhost ([::1]:45444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBMy4-0003EG-Oj for patch@linaro.org; Tue, 12 Jul 2022 16:58:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBMu7-0006dP-3Y for qemu-devel@nongnu.org; Tue, 12 Jul 2022 16:54:47 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:37684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBMu5-0007HS-KN for qemu-devel@nongnu.org; Tue, 12 Jul 2022 16:54:46 -0400 Received: by mail-wm1-x32b.google.com with SMTP id c131-20020a1c3589000000b003a2cc290135so95269wma.2 for ; Tue, 12 Jul 2022 13:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0pu9Y3XzRXbWbXaSGS52OJ20ieZtVBHvHSmSmKTWtx8=; b=Vb/vDw/TuUH61UbGVx6e/2yAqiGSuSCKG6QkOPkXdDf94KdOGRFiBv69czy4Yo6x5V b9DVuW7duxlMTx9WvyNLKNzahnj7vFa8Zw/rT1BWJVUOqjZbKrg8EftOpg5P9JmgWD2p KRZet9ita5kYuUq6TB7UxvJtmzdFg1lqKuNLiM0Ht/ZzqxFdvjP022xhKoGEA3IHJbos UFr3M0NGEwdLJncZ1m9ANVLkkLorxYmdoqTH/QpKo2l6DwRNwdWhWJJiJovpbbClD5RR 0PoJqcCZtHizSsbFmkz2U3II9x02F6WktHCnBKuZDKFvsxsFdfZ9sCswTZVFtJ7b/FRR yDgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=0pu9Y3XzRXbWbXaSGS52OJ20ieZtVBHvHSmSmKTWtx8=; b=i1d5M/hbftnG4t98mMU9pX3K2XVEBv9wsHhsMV7BKcbCSLhoN9QdlbeVELz0cMYncY SUvwicr6X0kPxYwBKkVoZrXMCtxXm5d+3uan/7pgHq3k04BKuigXDckwMML04h1feSV1 tc9iNaSIMr3DDpk/dRH1+tFCPBWwoHa9cf2GfpCxFqZzxrpGOR5quDbHJX9u5AS58K57 2Y1abaBHLYUavCrghaADNDbh8ANWQxPJhusroamiPnAmYWaLbKtHmj2J4wsFnWLmVoFD 6PVfYIHMgB3MqeWEj+p40t3nkYRpR4Md4hku9Q1f7uqTteO8XiwkxfCvDF//qNGAUfVz JbYA== X-Gm-Message-State: AJIora8zrx7huN5rzRSPvVFjl4x1W1o3/zI2HQ0YuvlsA95idKE0EZYa adwwg/s4eSDuqaV8HG9MxJJX3fEOrZ3sN0og X-Received: by 2002:a05:600c:1c1a:b0:3a2:d8e7:c15b with SMTP id j26-20020a05600c1c1a00b003a2d8e7c15bmr6100469wms.45.1657659284038; Tue, 12 Jul 2022 13:54:44 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id i4-20020a05600c480400b003a2eacc8179sm46176wmo.27.2022.07.12.13.54.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 Jul 2022 13:54:43 -0700 (PDT) To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , Aleksandar Rikalo , Richard Henderson Subject: [PULL 10/12] semihosting: Remove qemu_semihosting_log_out Date: Tue, 12 Jul 2022 22:53:45 +0200 Message-Id: <20220712205347.58372-11-f4bug@amsat.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220712205347.58372-1-f4bug@amsat.org> References: <20220712205347.58372-1-f4bug@amsat.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reply-to: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Original-From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= via From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= From: Richard Henderson The function is no longer used. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-Id: <20220628111701.677216-7-richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- include/semihosting/console.h | 13 ------------- semihosting/console.c | 9 --------- 2 files changed, 22 deletions(-) diff --git a/include/semihosting/console.h b/include/semihosting/console.h index 61b0cb3a94..bd78e5f03f 100644 --- a/include/semihosting/console.h +++ b/include/semihosting/console.h @@ -40,19 +40,6 @@ int qemu_semihosting_console_read(CPUState *cs, void *buf, int len); */ int qemu_semihosting_console_write(void *buf, int len); -/** - * qemu_semihosting_log_out: - * @s: pointer to string - * @len: length of string - * - * Send a string to the debug output. Unlike console_out these strings - * can't be sent to a remote gdb instance as they don't exist in guest - * memory. - * - * Returns: number of bytes written - */ -int qemu_semihosting_log_out(const char *s, int len); - /* * qemu_semihosting_console_block_until_ready: * @cs: CPUState diff --git a/semihosting/console.c b/semihosting/console.c index cda7cf1905..5b1ec0a1c3 100644 --- a/semihosting/console.c +++ b/semihosting/console.c @@ -38,15 +38,6 @@ typedef struct SemihostingConsole { static SemihostingConsole console; -int qemu_semihosting_log_out(const char *s, int len) -{ - if (console.chr) { - return qemu_chr_write_all(console.chr, (uint8_t *) s, len); - } else { - return write(STDERR_FILENO, s, len); - } -} - #define FIFO_SIZE 1024 static int console_can_read(void *opaque)