From patchwork Thu Aug 31 12:56:14 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: 718985 Delivered-To: patch@linaro.org Received: by 2002:adf:e5c2:0:b0:31d:da82:a3b4 with SMTP id a2csp460460wrn; Thu, 31 Aug 2023 06:08:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxQCeqHrzo6jxe5WXPLL/YZri1UrI8q4TMnuH/NlKxS2VFeaLFdJZHRmSdl6wLN9Z22MTC X-Received: by 2002:a9d:4e90:0:b0:6b9:6276:c64c with SMTP id v16-20020a9d4e90000000b006b96276c64cmr5064784otk.12.1693487293391; Thu, 31 Aug 2023 06:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693487293; cv=none; d=google.com; s=arc-20160816; b=iw//hRQG8pgsmQSWqjGxn6mwA2ffbis9F3fBimEnmId6oLS4AoiyIRfGIsXutORZfn bYJoe2hqaxGB9DqBhurqUk70OzrlwFkoLSjkWBxF6ZCfC2l++7Yq9YYzseSay15wYjZX bL7MRRC+Zgfr18HCiMYfJlHynLoBlsBG5SUUjizG32Iph6l/3PvYnpNpqy53v8da5PO1 sZfFvUBoQdsy1nptPQlvmJB/e+P9K61tXAENzQ8ZMm2ty/sibmp0q75kj98Skp+GhSHd ts9EscBCliRtHa48j4LRJvZx6GqZh3kgEpHTUJqffq6C3IYitdKE90aLtq4eCuswdL8n UDsg== 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=ckF3KMkPZoMJE539B3wi9BjBQFsmfr+Lf+8EhQQKEuk=; fh=oqkxg9j63M6YqZWP4SziXgurivxQ6XH1yX5knoDTdbU=; b=1IO7KVahCR5dtdnS23DMlzwpUgdaXwZqG4H+Bd1tBxd9a4NPZL5eTCfgAzfjxPbrgE DsZr9LDCWVge7ncNq3MfVxoNgxtyH36gW/KIVRIYKhp4W4X8VYFIoh7pAZ1I7XvbTEyv nV5q85AiHrnLieMbp9Z3XCnGnbiFGIyRGfxIomaahBkhYt6yy2HsJqodnVKT1PFbBAeP d6tNqP+J876UwzS1ubaMh2T9TlkvsvNVoPUVo5bKD+pStay6xDUC1lkCQPhMJXgtMimY WRHKHU2zsB6p9UB7dy8uP941294QfD2L9nrcdvUiwMeS7BtX0UP00aNIDS2YUIt5bXGV Kdtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w3BDIGHi; 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 y6-20020a05622a164600b004120cdcb199si796959qtj.796.2023.08.31.06.08.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Aug 2023 06:08: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=w3BDIGHi; 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 1qbhI4-0008Pt-CD; Thu, 31 Aug 2023 09:00:52 -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 1qbhFM-00037v-IL for qemu-devel@nongnu.org; Thu, 31 Aug 2023 08:58:05 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbhFJ-0005SW-6C for qemu-devel@nongnu.org; Thu, 31 Aug 2023 08:58:04 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-401ceda85cdso7524185e9.1 for ; Thu, 31 Aug 2023 05:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693486679; x=1694091479; 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=ckF3KMkPZoMJE539B3wi9BjBQFsmfr+Lf+8EhQQKEuk=; b=w3BDIGHi0jtA1JGF+WnjEKOUXj3SSbAAMMuWB5/xoS9Yt1LNAHb/z/0YL7+iDsuPeO uh9Ve8fGlesKcq/SRxH8JdmnvbLu399WZXFa3nq8tfw5PLkz6Z82Pi+6dmjAcJqW58l6 u/HpHOnsDXR4fN+NFLkAYSzAaZ4yj1PSxAsSPLXULSxVZ0mwpWAlHlYqJrlkQYl8raBd tFxLzvBvd9x5xNbEJRWw+Git5t/DdHMQ73vuSv6XQjZPQGG3MyMq2Ib00xedCaECYBO6 44rQv1bCSlcYoCvX0db8AygZy3MfJZZ2/A8sb3L42SN+9vnX5u9PZnz/hyDc4PvHaShf rBTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693486679; x=1694091479; 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=ckF3KMkPZoMJE539B3wi9BjBQFsmfr+Lf+8EhQQKEuk=; b=kT9yh4zZqAM9+oHKIcUW8/LH4Wc4mMVc7F8v0Eul9/JpnD1GK0cH52LZkpoiR6x/J6 kEhcUbYSRou+ef04TpT9i9SNFsMbuFWZHihf6Wkc/PBUz0zQ5xTIGdd0IGJstqslaVvz h8IHcImC1JfSu3dDK9Pi2c3kBuW/rbPXXah60aX0yyMsbOanXeaV5UxOAyo4ZSPDeec3 Rgv/JaYhWhjfBmjYn2/YjwhgQ4fS6FhMGG358uVYyKO9/sb8M+qZfdwbRmqPAOMlDR+9 fD7yRtPJE8IV64KOzadlmQCdDQTEm13Y4P4erUbRNbd7Ei2KnsHGCYsU5qzt9QQVIR7e 4Tew== X-Gm-Message-State: AOJu0YxN1ADPQfBPhBCjjGLkFfAJ0YJjnEGRDJayb8lDWXifMzhiacdK Rp4xbM50j3sA72IDvE4jFxdBEYxINOBzoGcFPVI= X-Received: by 2002:a05:600c:11c1:b0:3fe:90f:8496 with SMTP id b1-20020a05600c11c100b003fe090f8496mr3959276wmi.1.1693486679232; Thu, 31 Aug 2023 05:57:59 -0700 (PDT) Received: from m1x-phil.lan ([176.187.199.245]) by smtp.gmail.com with ESMTPSA id l7-20020a7bc447000000b003fe1fe56202sm1908227wmi.33.2023.08.31.05.57.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 31 Aug 2023 05:57:58 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= , Richard Henderson , Paolo Bonzini Subject: [PULL 12/41] target/translate: Restrict 'exec/cpu_ldst.h' to user emulation Date: Thu, 31 Aug 2023 14:56:14 +0200 Message-ID: <20230831125646.67855-13-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230831125646.67855-1-philmd@linaro.org> References: <20230831125646.67855-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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 Only handle_sigsegv_accerr_write(), declared with user emulation, requires "exec/cpu_ldst.h" (for the abi_ptr typedef). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230828221314.18435-6-philmd@linaro.org> --- include/exec/exec-all.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index d02517e95f..b2f5cd4c2a 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -21,7 +21,7 @@ #define EXEC_ALL_H #include "cpu.h" -#ifdef CONFIG_TCG +#if defined(CONFIG_USER_ONLY) #include "exec/cpu_ldst.h" #endif #include "exec/translation-block.h"