From patchwork Wed Jun 8 05:19:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 579808 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp5794479max; Tue, 7 Jun 2022 22:21:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCoPwpF99YgKI8qOqu56VPTN2sDUohY7V0G9nI9HlzExuCMRzVKDOyrzn/6JTrbmxdd+8w X-Received: by 2002:a37:9e12:0:b0:6a6:9643:4bb9 with SMTP id h18-20020a379e12000000b006a696434bb9mr17485353qke.2.1654665682982; Tue, 07 Jun 2022 22:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665682; cv=none; d=google.com; s=arc-20160816; b=YXPBoRPMoPU15nu+vgajkXvw1kN15OYHucOrq/sHqDDsDDV7MRfsTTBaMIIMFDkWjy heQGnz2KuP3IPnekyrG/dcnoUPCQo8wcmDmodHXm1AfJAweZIVWCrxyoKgHDhyPJDYPq U6fiyaNUoZwe8xml21na0RambC1nl3Ztz+TBQDecObuW+Ueps1+7f+CpANxYI9ig1skw Txv6WEUP0mqZmsmT9tk1iMQv7Cpee0XcWcAWGRMvQ/NZSUgJckk4bHIwM99cCuqBtW0i yvjIbK6wSXen1YckitYHxBWldjzIVi0eC8RkPidv2zrhg8iqtKLcSXp/43yVVInIJCVN mDvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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 :from:dkim-signature; bh=7hrYGm6CB5wl83BARKhSg3dxjfTTX0HLuXW9+o58cZc=; b=kZhl4EFGnxB/uKcoY1M8Fc+Z/sq8Ey5+MPOWvWqJFaYZOp/ZBhPnNS/gPjRZCGhCaD dgGyn4BCJRTgVuoL2blOd3wsJ6mH8UmlDNY3wBe6gLx1DDGQA/47+HdZqhvDBBVG1BLs jnsXQnZc+RGnThV2YoNLCpkvDTdWeKFVzIxxyU+qQy1pax8ZEHDbcDYrZbbWDlcDqof0 cNNmIIkEDrbp6MZm06FiHjT+YzbyXFJ/4zW3Nr1NzD5hPAjGCWkZFhsVOXfct1gcb5nX /Y32ttF54gcyZ6m7me16ASo7saPYWymrXj/VvIDlvdxtxg2FSChVEI5DiVDByYbjvl00 bKZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IuGF6ySv; 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=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s6-20020a0562140ca600b0045d50fefe73si10395502qvs.375.2022.06.07.22.21.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jun 2022 22:21:22 -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=pass header.i=@linaro.org header.s=google header.b=IuGF6ySv; 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=linaro.org Received: from localhost ([::1]:60936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyo8A-0006z0-J0 for patch@linaro.org; Wed, 08 Jun 2022 01:21:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyo6n-0006vd-LH for qemu-devel@nongnu.org; Wed, 08 Jun 2022 01:19:57 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:42506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyo6m-00023W-0C for qemu-devel@nongnu.org; Wed, 08 Jun 2022 01:19:57 -0400 Received: by mail-pl1-x629.google.com with SMTP id d22so16654615plr.9 for ; Tue, 07 Jun 2022 22:19:55 -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=7hrYGm6CB5wl83BARKhSg3dxjfTTX0HLuXW9+o58cZc=; b=IuGF6ySv0370yKn52DUQm+78xcb46sg7ZJPS1Kz2moi07HrQnuVBliDqhWEq3rYU6M i8R0sXlieBGs2ovK90kIvVfcx+RVi3Y5Zk2taOIBNan0n1/umZ0PY7rjzEOE0HoIcOAZ OHM1tbyuhs1pf1BLmW5ZXRSdDRhQiWa3RSyCLb4oItpXHrmzpPvcz/1zSQoPse50KTCp 8et6k/7RSLPvKKYjOD2XFdK8qhB674hm7ly7JF30qN9/V5nn4mF+f3vKHR2u8OqTOkwU LHT8hBREJ1Wv8ytSUtgJH2eOHkLTDdhmiHAH+4LumNgI0w5cxHPAnRASks2oT1uGCdPu eNHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7hrYGm6CB5wl83BARKhSg3dxjfTTX0HLuXW9+o58cZc=; b=TsJ2BuvX8uTvUsvWVQ2vI+7C2Oz4oDSjRy02OAl3Bj4tWqCjsWyu2hAB/pPoywk3Os IITM8R5k5KI2w5m8bjwntInpFsIloiUEMSekQG2qp2eVPJP/poSZtt2cWBBOPObHwv6y 1GP/v0z0EaZiCn20fGoRv2WQ6Bo1q8Z2wdBv/XlNas5cEwoWy8PyrokZxKskH6M3Btoq WZV9kR3O1EzDpl7LYj/X/7nbkwQo/KAtTqa4+iPXXvvErP9KBmqODWR1t4mcu6OZ4Sr1 bmRyLaxo71JB0lowFXfd5aJ6mjtlVbCDmQfZn6InBITt38OkLp9RCxTUX0g0jHnSrakp DNAA== X-Gm-Message-State: AOAM530cbkex2jUMC/ccBfgNzKwW4bZbTq/3aDCBS/8sSxPDst8mBlCw XLJ6fBQpM2BgRjBuSztc14HgBanKNbDXng== X-Received: by 2002:a17:902:e888:b0:163:f3e5:b379 with SMTP id w8-20020a170902e88800b00163f3e5b379mr32680921plg.62.1654665594551; Tue, 07 Jun 2022 22:19:54 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:c626:2f70:ac99:7c97]) by smtp.gmail.com with ESMTPSA id k8-20020a170902d58800b001641244d051sm13378807plh.257.2022.06.07.22.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:19:54 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: f4bug@amsat.org Subject: [PATCH v4 09/11] semihosting: Remove qemu_semihosting_log_out Date: Tue, 7 Jun 2022 22:19:43 -0700 Message-Id: <20220608051945.802339-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220608051945.802339-1-richard.henderson@linaro.org> References: <20220608051945.802339-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.google.com 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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" The function is no longer used. Signed-off-by: Richard Henderson Reviewed-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)