From patchwork Thu Apr 18 19:25:04 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: 789834 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp734836wrm; Thu, 18 Apr 2024 12:28:19 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXbywUlBZONyz7bJOLHI5CotofTFR1V/YjErHBd4iWKr0CXPTcDrVKBwTj5fQVZYl54ZuNz0v42d7uOFctD45jO X-Google-Smtp-Source: AGHT+IHs7zq5+XP6Cc/dIx6uNzjeD8I3BItKykwLsfNJLbpTVE0iOjvpXxLpGohMKCCjZbnjuFJI X-Received: by 2002:a05:620a:c4f:b0:78e:b327:7056 with SMTP id u15-20020a05620a0c4f00b0078eb3277056mr91188qki.51.1713468499339; Thu, 18 Apr 2024 12:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713468499; cv=none; d=google.com; s=arc-20160816; b=FoaGDG/2OGqerW4PdAVcMhvNoiykoz/C7GfZitqKUXGU8hE3J19GRNxcSFDydj30q2 96zPXDzrAvJJSTHShNU/XgC1+p7xv2528DCSabGi64cLjpClQMZKwQ8Uj11CM9bRN4WH L3MB9PLwUPlpKLPXIAoFI2GOG0rcpWsL7cw27WmmavaqGyoOCPsl7FW10ooQUA7Tlnyf kFjT0l5k+2yOhJsrkv/rZ5qowXut3Ypla6Mt0EM31N/7JOocJXfZRHHTOc8VDjBkO32z gZDgjC/EibHQS0U4/x6zC472BQ4F9go5JemjfMANGD0hro/u3HBqwLFsEI37Snk43ilF kYfg== 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=A5AN2zfNkbZgNzq4yMXaRJrNHQuv3As8IXVhhvnN+gY=; fh=OldoyVsnxIotb3oLwZzdNfaQktZrdXn2xfyEQOuGV+M=; b=okuoolJy7C2ctigX4ydgzW50JaLxLrDtdMu+0wbGDfEkqy7J4nsPNQ+h7eAjf4Jple HvrN9TFn1AlmOvEQJ+p1pZZtztvo7/+zimFVWPUx0q7+UaAKJEu4ab/eB8ck2GAD39vT +Di1tHqWLcPSU3FAbQWcVr5eop1EFtqTueQIlUr8j8OnzAwUQctECCEUeP/npD4ytWlg A0+O7nXEWjRndsDwc7NyMGrwz/NOD17euxbOc6z9yrAkCtz/dxoiRaAOR6REEZVia13+ uGgnVF44/xh+54vZXy2KZ6siQy8267l54kKA3cyXnVYBkFJjtjP15gEM/Q47C5mR3isj Qf/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kWfD3cqy; 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 os15-20020a05620a810f00b0078d623428b7si2075265qkn.181.2024.04.18.12.28.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2024 12:28:19 -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=kWfD3cqy; 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 1rxXQc-00021Z-9G; Thu, 18 Apr 2024 15:28:15 -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 1rxXOW-0007lJ-N7 for qemu-devel@nongnu.org; Thu, 18 Apr 2024 15:26:07 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxXOT-0007Kj-Qf for qemu-devel@nongnu.org; Thu, 18 Apr 2024 15:26:04 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-56c5d05128dso1153664a12.0 for ; Thu, 18 Apr 2024 12:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713468359; x=1714073159; 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=A5AN2zfNkbZgNzq4yMXaRJrNHQuv3As8IXVhhvnN+gY=; b=kWfD3cqyKXkpJywFm4hz1taUSWiPgaOQYBWpLgXQVQj0bWi+YeQgPvJ+WLCJHiIX0N grwLsEFVrGWzc7ambiU7upeH+e1uujDt9a2EPAC0HXplilD8BdYmP+aLjWs+vorzCoiX +VjcyFPk01i0vtgHWioVZgyXfGrWIRk0s8g01FMAbjpwT6NogsoVraEONx7F+RCs1GqU EwjzHus+71ToGm0Ql2ALRzYJc1dL5J9dniYs/wiy77ocyonO8D31o+KeeWKXhejU+nPm dThiL3kaSD+uqU8d74EjZ/JCb/vClEVrFRYqdwNXp46ITQLshCIQ4ti0tgtjrYJs9iW8 fCmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713468359; x=1714073159; 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=A5AN2zfNkbZgNzq4yMXaRJrNHQuv3As8IXVhhvnN+gY=; b=r9FxwG4ffRASNogAmthib/G8tMmM1nsD7xJo6WqW5xsk3fk1QVfqvIJPnzxDy3sB6k b8JbTrYYOkU+uq4RnPLbOMdW2YDXPHGc0zgvVvMcNAOmMthKnSNAzdeoNzY07v1biPlE FkUxN/Cy9L8kFXNm9BIYp1aX/Jj+eoc6mUwxqrX3IWKycasyA0lxs8oGzaJ6mjCPp5jX 8utzb5HrHDV5KPM2d5u8Q09IF07IYh6Syep00wJPIorkkYqeMpZHBm1CHVjqIeW+inXg d0Nr3wiu6P8aR863cdgThDV93w7OuCVch5pIKnP3q9rNB3tRCbhG+enrwdI/yeE4Ijk4 wI6g== X-Gm-Message-State: AOJu0YyiMH+/WV6pq3E/RATxTu+iJAfhEiqR3vFHEMsqXrQ2E9EIkMMj xDxT+7ul08D3Uz4QzWSsAw34RhTzKQk11G0dYjb0go5k9KicLWzMRXWOKAj3A0PnaipbaEltD5O 1 X-Received: by 2002:a17:906:1949:b0:a52:5925:1f76 with SMTP id b9-20020a170906194900b00a5259251f76mr47729eje.47.1713468359292; Thu, 18 Apr 2024 12:25:59 -0700 (PDT) Received: from m1x-phil.lan ([176.176.151.213]) by smtp.gmail.com with ESMTPSA id z18-20020a170906435200b00a4e657a5f1asm1259445ejm.112.2024.04.18.12.25.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 18 Apr 2024 12:25:58 -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 05/24] exec: Restrict 'cpu_ldst.h' to TCG accelerator Date: Thu, 18 Apr 2024 21:25:04 +0200 Message-ID: <20240418192525.97451-6-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::52a; envelope-from=philmd@linaro.org; helo=mail-ed1-x52a.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 "exec/cpu_ldst.h" is specific to TCG, do not allow its inclusion from other accelerators. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/exec/cpu_ldst.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/exec/cpu_ldst.h b/include/exec/cpu_ldst.h index 5b99666702..f3c2a3ca74 100644 --- a/include/exec/cpu_ldst.h +++ b/include/exec/cpu_ldst.h @@ -1,5 +1,5 @@ /* - * Software MMU support + * Software MMU support (per-target) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -62,6 +62,10 @@ #ifndef CPU_LDST_H #define CPU_LDST_H +#ifndef CONFIG_TCG +#error Can only include this header with TCG +#endif + #include "exec/memopidx.h" #include "exec/abi_ptr.h" #include "exec/mmu-access-type.h"