From patchwork Tue Jun 13 09:38:08 2023 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: 691967 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d91:0:0:0:0:0 with SMTP id b17csp360648wru; Tue, 13 Jun 2023 04:27:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+XIH9EiC0t6FxvfTgLdtHqKeN/iNA1eBJh00d1t/WPEzZjI9buZ9xR4m1wMCm1VBICIh3 X-Received: by 2002:a05:620a:2906:b0:75d:a0d:b27d with SMTP id m6-20020a05620a290600b0075d0a0db27dmr16091538qkp.20.1686655633539; Tue, 13 Jun 2023 04:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686655633; cv=none; d=google.com; s=arc-20160816; b=0vTiyscDpaEFlDN1EJGoxQI7TcrV/Ua1nsgFMTj4PmGBO8d7YkT3EU+0fDBjoOTryy t3ntYT+PQJmriqDdSs6bBMgnNPpi6x5uXAW/53oKTjz4FF39Ysqm4kjaAt3aAZVW/JIV EzG/D49B0CSsjLsWOZbtdU671dMyGRlZ40TblE1S4tUTGHwOD1dXSwpNnJ0dPwW5UY7P U/mFfK1Rm8engBuMN6qgaWjC8xbJXRcnYLOF32tmeqsk64sK/1F/wzQNQFgx7Ij49ggl PPupTqYVoP53dwrg13ixdLkj5lR1Qmgsc+CubbnQmx03qR3JM26TSf4anMGVwmdwl4zr Sglw== 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=6qJ7BQ2qR0lwowzhuJJ58u1mhSulIi2t/OhI5+4Ytsc=; b=bdrPTxFfOo6l9jmmTQWlUxUkimfvcG0jDKhkgdx1Pgp6lUUtnnscVCHjNfP60kxO69 YrzMP2/36XyWV48aCY9v5Z0mnHCzfBI/ONEAmEK2R89BOANZaTLPWxeAgVeazqzHakcn Sjnn7BXrF1YeK5TRqUuC2pNevwfbG/+DI8V+Gt2mPK9C0drcL8ueS7/5U06/QBqU07U6 ugL2GoUZ85+pTPNvAd+uLpDyFEWWFDdZSKu0VGzs8+YplmLxg7jgi2G6RS7UWDQ2Bvym Q7WlGGLMwbSujZehk/37Ae6iuGfV1NhmnbNA5Yo5dhnzD1ViqIq6u+hGAv8SyUqQ2nzI /qJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c9Izl1KH; 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 pe27-20020a05620a851b00b0074e4e7c418fsi7184105qkn.784.2023.06.13.04.27.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Jun 2023 04:27:13 -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=c9Izl1KH; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q90UE-0005DH-MM; Tue, 13 Jun 2023 05:38:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q90UC-0005BE-I0 for qemu-devel@nongnu.org; Tue, 13 Jun 2023 05:38:48 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q90U9-0005Vn-BK for qemu-devel@nongnu.org; Tue, 13 Jun 2023 05:38:48 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-977cf86aae5so804699066b.0 for ; Tue, 13 Jun 2023 02:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686649118; x=1689241118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6qJ7BQ2qR0lwowzhuJJ58u1mhSulIi2t/OhI5+4Ytsc=; b=c9Izl1KHKJhcbr5C3nlKdHCh+00vRVp0dpdltvxdil5wL1EC+bTdpLZXT34iiG7VTO Uvlzoi0uqngg0nem7b3mMOWqpASbTsbm6wUeq3WLHRvn2G8FXpDmaGc6ZgQ3yH3mVxjK Ar72bu+DdY1Ijks+zrx2TfmhZBKBgjCsLAiJ6GSlzGRRNRSwPlnFwpctWOZ+Qh1Xir9F AwkL1b8mQXtHyiLBQ8aDHv2LP+g4LfxfvSXDfIbHDwjOfCtW+apq6D3HwTTvv9385+Qd ebdw0JyV21T7pSJFvlk15/7ZfJrxT7ILNkZrp3a2ABTrmXGLrvsy+Z8bzuPoYXRvGfv1 HHQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686649118; x=1689241118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6qJ7BQ2qR0lwowzhuJJ58u1mhSulIi2t/OhI5+4Ytsc=; b=ffpZ5bYLuT5pEE33c0GpBlvDwVegmAs2N+u5N9YRWEgRf8At+obwsdPd7mZsIf+2af nu8piND6sOP5+bWaUGEzDM60g3JTGrTk2n321/thfktDL9vEqCVC5BcpyOX3yw5mV3e5 JeBnc/NeZWQbh19/FyC/fqcWod48U3WIjo9LhvAfe7E1juIQz8eD5EhymH/RljjJH0RL v+dSrI5fmhEgnlHWiNneVK3wXXXO0N1cu163dyDOcO3Qc0nBOjQ2RGBYtCIZwgTOk2sF aGlQAs0sFwgEWZpDq/+g4Z9ACyKZ4eALIkHgk01/uIcxr5q4spH7hYpz1GnHsxuYvw70 EOHA== X-Gm-Message-State: AC+VfDx27P9i7BJRiJlyD0DZywRaCd/LFIf8o7Lttv3NhH48wh0zIhLo U/DQHpoZ/qvHQoAgqy6QrghairUSYZVThy4xZWkJQA== X-Received: by 2002:a17:907:9342:b0:973:91f7:508a with SMTP id bv2-20020a170907934200b0097391f7508amr10909380ejc.4.1686649117880; Tue, 13 Jun 2023 02:38:37 -0700 (PDT) Received: from localhost.localdomain ([185.140.244.249]) by smtp.gmail.com with ESMTPSA id n11-20020a1709062bcb00b00977eec7b7e8sm6395760ejg.68.2023.06.13.02.38.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 13 Jun 2023 02:38:37 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PULL 03/17] util/cacheflush: Use declarations from on Darwin Date: Tue, 13 Jun 2023 11:38:08 +0200 Message-Id: <20230613093822.63750-4-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230613093822.63750-1-philmd@linaro.org> References: <20230613093822.63750-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=philmd@linaro.org; helo=mail-ej1-x62b.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=unavailable 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-bounces+patch=linaro.org@nongnu.org Per the cache(3) man page, sys_icache_invalidate() and sys_dcache_flush() are declared in . Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230605175647.88395-2-philmd@linaro.org> --- util/cacheflush.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/cacheflush.c b/util/cacheflush.c index 06c2333a60..de35616718 100644 --- a/util/cacheflush.c +++ b/util/cacheflush.c @@ -237,8 +237,8 @@ static void __attribute__((constructor)) init_cache_info(void) #ifdef CONFIG_DARWIN /* Apple does not expose CTR_EL0, so we must use system interfaces. */ -extern void sys_icache_invalidate(void *start, size_t len); -extern void sys_dcache_flush(void *start, size_t len); +#include + void flush_idcache_range(uintptr_t rx, uintptr_t rw, size_t len) { sys_dcache_flush((void *)rw, len);