From patchwork Mon Aug 28 14:55:42 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: 717731 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp1231402wru; Mon, 28 Aug 2023 07:57:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+2Qdpd8twVyFT4wsPb/anrYSV0ea9MIJz/G2fHt9hC3EWf++mRcz3u49aYhOMA+T92PTk X-Received: by 2002:a05:620a:4541:b0:76c:cce2:e7d5 with SMTP id u1-20020a05620a454100b0076ccce2e7d5mr27439135qkp.62.1693234657545; Mon, 28 Aug 2023 07:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693234657; cv=none; d=google.com; s=arc-20160816; b=vdA+1WHzRx+mjTiKjwUpdikz7J0LcMrKdgEpsXKadcmcVoj1JUKn1mYrlfT9dwm7f5 YKKc6BrA5JDN0mRACNLPRBPXm2C9hfb5lP9qNXqCBC2kEfcT1uaOWT110+95MAuF58sI s2bQFiFM4iJp5IRmLyq+q2LeoOQtYcNb9Zoeb6wk83ESZbIY5eQoOewGgjmYIOoJgS5T NnVFWYHV8BKh0W1GZsBCxF5Yi8qbCiymurieezK94bXxESGN4zpjazPvMzsm8m1AOHUC fWunij+50xlTO7w/5LPypPboCBgGq0geA8slRx7tD+AOslT4KBW5+/o60oOfdPXT0nib sGKA== 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=L0c9RUkLqeb/dUA6rdk/b7YWrq3qs8i6j4y2xORygss=; fh=FxYtB1slzL/yn78+bieLaailXu9MIAo7Kb5vkjusizk=; b=yJKNyWpe+FSmWLC/t5hyzMarHovOoz/4KN9paFSt9Fck1XcFyoF6OH7K22SE5sqIkp TwcRFeea7E8JoCelUALbtyNgMa2WQ6sADYPIeSaFTh6hNBxkSXstuBw3sU1lDJK0In6M 1zleNF8w7eFgmEq6zFnBLOgOndKTXgRkN+K3VLeEmNQWgFvc8ta4u+6DrSgHjSaAk8Gq B8QoYZucorZe/g75/KUVFjEP7E0GfM8dcazbul7iCLu4sjweSarJo90PSFbfjx7yvlPj SvavNys7QiadYrmU+d1GkCobhD4qXZDau6xbEpT88lEf58Q7RfJ/yFZrKH/5zjkrcLUG jQ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lMCqUxq3; 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 dz3-20020a05620a2b8300b0076da2abc9f2si2771047qkb.447.2023.08.28.07.57.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Aug 2023 07:57:37 -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=lMCqUxq3; 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 1qadfF-0003XD-Dp; Mon, 28 Aug 2023 10:56:25 -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 1qadfD-0003Vh-2F for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:23 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qadf9-0000hk-AO for qemu-devel@nongnu.org; Mon, 28 Aug 2023 10:56:22 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40078c4855fso31107395e9.3 for ; Mon, 28 Aug 2023 07:56:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693234577; x=1693839377; 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=L0c9RUkLqeb/dUA6rdk/b7YWrq3qs8i6j4y2xORygss=; b=lMCqUxq3kCSkpFfLlHaGc43t/H8kjzJrNqZwgE8+i7pZkWKd3kZ6qy0MIKlsaTCpa7 OZd840XQDIqp+YbIlyMK96SA3+Xs6c1VkYI9QAQOfLhuDkng2U0COkn3itO7AxYGkY4X 5QeCCX2OKwa08nsl1O2CPfZmYZyqJ9eh3k/p8K1EFfout35o2I09Nh9iuMeQNumMrOrP 7tyeLSDXjREbmxvF4BioxA5wP18FUatwWiz/Q2rR+12L9XkZYA5RZb3riKR6ahx3gSo+ P+70K9Sub584uZBhO4dbH8smLwYTtfKGr82TYCsDFCbL/IwKvjNuFMPqEbs3UfpPrmGV Vq7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693234577; x=1693839377; 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=L0c9RUkLqeb/dUA6rdk/b7YWrq3qs8i6j4y2xORygss=; b=aSIJgNuL3QQooUhWTk9QxOQavhMl3rO5LaGFGEyg8PRryyjwNDCDM9d52J73Edj0Gt +B1s2tTS9gogthP8d12dezPyEU2uSBJc000BTdpcPTvckhTUsNsV1Vwt89cRAlKeBQFH o60Dl4WdeDDTMjvwAWuovt1QeXVlks9d4GRsDOyLdnpXp8Ut0LSpRwsdyITf7AzI2K70 gIk/2SIOjQlV+XFcu9a+NvXT0BAtlzxNprX/YBjuh5Y+obajzT32+pEKcs8N9mMiMHZx PDlwdc7Jm+SnRkXCLKTIqQYL7zGpZDJSo1bbe3dqZdnERSh4gmWFCgEGIKB9rxs64crm KQfQ== X-Gm-Message-State: AOJu0YwNNy7H5xXHKUP4OzQtr3LSUscoCwmo8O94eVrO6iAWwp2S7AGP ZIKMGNF58IoY7FNlFFC/gmBy1Ga14KJmfQ5Z/Co= X-Received: by 2002:a7b:c455:0:b0:401:c436:8999 with SMTP id l21-20020a7bc455000000b00401c4368999mr3828849wmi.30.1693234577802; Mon, 28 Aug 2023 07:56:17 -0700 (PDT) Received: from m1x-phil.lan ([176.164.201.64]) by smtp.gmail.com with ESMTPSA id g12-20020a7bc4cc000000b003fed8e12d62sm11070682wmk.27.2023.08.28.07.56.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 28 Aug 2023 07:56:17 -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, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 5/8] target/translate: Restrict 'exec/cpu_ldst.h' to user emulation Date: Mon, 28 Aug 2023 16:55:42 +0200 Message-ID: <20230828145545.81165-6-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230828145545.81165-1-philmd@linaro.org> References: <20230828145545.81165-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 --- 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"