From patchwork Thu Apr 18 19:25:03 2024 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: 789831 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp734613wrm; Thu, 18 Apr 2024 12:27:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXs/N90WK1H2j+rloOtzgrXnvG3ZOQBYLSgS5+1LDcdycFUje20GwsM+7xPqWFbWEuirqVAvjCvKJwWS8tYsYD8 X-Google-Smtp-Source: AGHT+IHN0FGmqUxRLaVHmoRp8/3JJXTXsqaWW/stTwVvXaYg/l94ADW6l9R0RwS8Gp/gEl4wVC7U X-Received: by 2002:a05:622a:1a08:b0:434:85da:4022 with SMTP id f8-20020a05622a1a0800b0043485da4022mr32309qtb.65.1713468465971; Thu, 18 Apr 2024 12:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713468465; cv=none; d=google.com; s=arc-20160816; b=qhvOyop1Am6XIlPVBM2XQJcqcrDtlDVz0DK1w5/4+yWjYYXtCpDl1F//ARMkTQRuYx 0vD6+9Vqs2WL6j0lfk/Y8D5vyuM8XNZkL2JwHoIop/KvKKtTDWFKddyR4H12H2IKTkGB BfTNSBSAVYb3yveQ3GtFach2Qp8sSdNRbJX04/PRrzzZOpLbIEOumPQlZ2ArSFJUzUy5 IDNyTt8DyL6Mn5YAoR1DBRBcrOgeUcGrsOk/pqVzFd+mIGjgR6IvfnRtv79Lpn6Cobgp A/NhwBC3s0L1Ah5K8czK+MtjSg2/jOCeIlkWosW/xKk/Ds7lgL8/NySKKIpSP71rKOMp BQyg== 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=akXy09tUeGr6mCjhMUDCOqgVvIVDrIu0xemDF/6ToBg=; fh=OldoyVsnxIotb3oLwZzdNfaQktZrdXn2xfyEQOuGV+M=; b=hLnJQ1Ot2OISusrx2Z5d9n6OoatX8jlccy524eDnTekQ4ukV5yOVJAfozKpprRhvUJ nYJ2NuVe+ghJsMTPK3HVPDVMAtSHb/QxGolmzRZa0OXj2BYh+3cJ7KV1RyRQVm+bi0NF bQzBUCNPbSRdl78JXzgpAFqMoEuWcnaeNDz3iPhscDskUGOrhOb9kQhv550kldY2aaT5 LAvYe+ZdkcxZJ2NAfTQwRQCzR4YrU5nZXBEJE9tBhIsUFUmG2h/Z4O1GjvFWAndp/8lF 6fiZc7fFT6XzzTjKfIFSH7LLdVm/thnS98B+MLtJDWNfoVNfXjW2crJU/j3j1XGU9PRy KK7A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w9Tvs5yd; 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 c18-20020a05622a025200b00437872f39c2si2121406qtx.11.2024.04.18.12.27.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2024 12:27:45 -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=w9Tvs5yd; 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 1rxXQ4-0000kw-Lr; Thu, 18 Apr 2024 15:27:41 -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 1rxXOR-0007g3-DD for qemu-devel@nongnu.org; Thu, 18 Apr 2024 15:26:01 -0400 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxXOO-0007IC-6B for qemu-devel@nongnu.org; Thu, 18 Apr 2024 15:25:59 -0400 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a5200afe39eso131757366b.1 for ; Thu, 18 Apr 2024 12:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713468353; x=1714073153; darn=nongnu.org; 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=akXy09tUeGr6mCjhMUDCOqgVvIVDrIu0xemDF/6ToBg=; b=w9Tvs5ydrAfdcvCpUw1hnTnuV0alj/n+NqHob3B5ivBx86udhY17/aiKGMoZH4sdI+ rtQ2xi5KMOV2HLdHrJD38edvafwScUwon3MvgaMsgWTNQE4rq8U/aZnZYv6ux5YnQCyL I6JCqTkwVWn8dFCXsv6A/J//ceza4QDI/4sVVyk0PYIYa5CtMvCSJ94pjLD6NvQb0Dcs 5nTEirbXjKM+H0lvuY98apBHTq8mvoqY2/bJnvSOAKtLi0vIbMjpnquxM/pf4/GxMI1q JzyXtbtV5BDXfv/6oOpPlaXsqrFjqhSSe4XrREPSwuj08P1EQW5fur/RuqHkPh+J/Bse 4OTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713468353; x=1714073153; 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=akXy09tUeGr6mCjhMUDCOqgVvIVDrIu0xemDF/6ToBg=; b=NltsUME2Mm/NDkyXahIdGsKD/Wy638YYtrmpuSvmiXoblVN3l88iXwoIKeKSSVZTXW 76nY35Sfg5BXtZPFhBda5dgRHqP3+caSfSyuzq5RVLcnhRqoo2dUG6wWUhvia4/YdBw0 QOGtkoD9nZ/BVeZTki/F5+d0VUIcw4vY31lXVUKVRPQsHA7lWpoqvdr85q4J5pF7cTn4 Vu30+BgoTg/VFOcAs/et0o7MNHz0OV7GArU/Ds5P5KSsfbTwRfZh0zP1XYX0L2pHhpnS Xv4+WUZR3XNC4agayCisI2HwH3bIZR1oQKEdCp8EP09xEj98g/fr3AJrUK7OvROoO0DR MGXA== X-Gm-Message-State: AOJu0YzzyRf8IbQj3+MYWsO6qpY0uFSH3POheTrdCCmVZrAGOoiyzTpp n7VNfom+janZ0tp4tg6AlIHd/XqB5i8TTXLISDIABgLFNnqdiWFgmg9+O0pbflBUXWVxejfFbH9 I X-Received: by 2002:a17:906:915:b0:a51:c964:3cb7 with SMTP id i21-20020a170906091500b00a51c9643cb7mr50934ejd.61.1713468353390; Thu, 18 Apr 2024 12:25:53 -0700 (PDT) Received: from m1x-phil.lan ([176.176.151.213]) by smtp.gmail.com with ESMTPSA id i7-20020a1709061e4700b00a52244ab819sm1270026ejj.170.2024.04.18.12.25.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 18 Apr 2024 12:25:53 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, David Hildenbrand , =?utf-8?q?Alex_Benn=C3=A9e?= , Anton Johansson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 04/24] exec: Restrict TCG specific declarations of 'cputlb.h' Date: Thu, 18 Apr 2024 21:25:03 +0200 Message-ID: <20240418192525.97451-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240418192525.97451-1-philmd@linaro.org> References: <20240418192525.97451-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=philmd@linaro.org; helo=mail-ej1-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 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 Avoid TCG specific declarations being used from non-TCG accelerators. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/exec/cputlb.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h index 6da1462c4f..ef18642a32 100644 --- a/include/exec/cputlb.h +++ b/include/exec/cputlb.h @@ -22,9 +22,14 @@ #include "exec/cpu-common.h" +#ifdef CONFIG_TCG + #if !defined(CONFIG_USER_ONLY) /* cputlb.c */ void tlb_protect_code(ram_addr_t ram_addr); void tlb_unprotect_code(ram_addr_t ram_addr); #endif + +#endif /* CONFIG_TCG */ + #endif