From patchwork Thu Feb 16 17:11:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 654071 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcd:0:0:0:0:0 with SMTP id e13csp86643wrc; Thu, 16 Feb 2023 09:15:48 -0800 (PST) X-Google-Smtp-Source: AK7set+oiURgLH5EufNVZBy3fnu+z1XNpehbfRVvWBG3FO+3ltclNCwuCPFqrCcdCsm3hhkDGmBT X-Received: by 2002:ad4:5baa:0:b0:56f:225:8e2a with SMTP id 10-20020ad45baa000000b0056f02258e2amr2451333qvq.17.1676567748176; Thu, 16 Feb 2023 09:15:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676567748; cv=none; d=google.com; s=arc-20160816; b=itL/4Pg7Oec6KmanUETafAl7LXuLkjgLmcJ+5ujdYxY/vHS9/daZ7S5h5Phwh5chOW DiW1sLf6Gra4n7uELtjMp1E5bij2Tv3HVLMiyXm3oXlRgaXevCkA5GWJMGwAYwwMvs6i +q+qx3SuQAoSsJRUjTotEnXHWX5wXBRkPCwWGoyUXtsMSL+cLXRHRiljqFKqPwZ0VM/a cR5ktlwX4kfmYd5c+46Y+FGbohCFTLA7MoKismwDjNkv3RHW5QJB1uKV8TK4js2468za Yf1CvNNpgGkTO0QANfk6LrrCnO40v0nULpIHPlLDcUB9rj/52mesTyyFQpJdd5GIlKWs VQQA== 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:to:from :dkim-signature; bh=yZdYj4xUNtAS17eIdljWMHqlEpUmYI5NCeKfPxqq7Ng=; b=uYUB8bRUwssX+0AU+oVDqocj98cfmBrifDiJhOQXOgJ1skarMvXV01b89GCg48tRod ekN6PpKktwhcqapUc3WnP/JO1C520kMs8sLhrtoIQyXTj5GUeWnQq471f0aB9qnP/G1z an8MIky8xKizJFgNQ+miTijG9z8WoT/0DjXkuNIks1SE0Nzq0/6L7t3bdX8Hcxjx7/Mu acfbTJSvjeXK8iw2hJqHLZSRDhV0UO1Tuf3PSDKniLH40gcLeT9hmL1uI0mS6jiPqZ2H gCkn2QB+yV0KwFBnhXyE4Xp785U3NYNYxcjGWfNcnOKN82y6APpS6vgKhWAWYv6fIwNj 7VYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TpgL2bJz; 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 b19-20020a0cc993000000b0056ea3725266si1450058qvk.209.2023.02.16.09.15.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Feb 2023 09:15:48 -0800 (PST) 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=TpgL2bJz; 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 1pShnD-0007yi-E7; Thu, 16 Feb 2023 12:11:35 -0500 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 1pShnC-0007yE-Bk for qemu-devel@nongnu.org; Thu, 16 Feb 2023 12:11:34 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pShnA-0007pa-QH for qemu-devel@nongnu.org; Thu, 16 Feb 2023 12:11:34 -0500 Received: by mail-wr1-x42a.google.com with SMTP id r28so2068948wra.5 for ; Thu, 16 Feb 2023 09:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=yZdYj4xUNtAS17eIdljWMHqlEpUmYI5NCeKfPxqq7Ng=; b=TpgL2bJzG0Xs6ICWEja2+3fWDhXFyvR1Z5kz0tjgZdqGtKZlk2An/ZixyeGF3lInRs LA+p+89oTkgkkTGmBKs9oGX67ymOHf+G8F/Mxwksabr9OG+jag/Je942fVHYuptA6wRN PnOaeNf/I8YE0XPXsx/ApxcLgwDN3qeg+1twlxmxcWZlC9X3pD4YoN0SOpZxqagsjmar 8XdUQNqctCt8w86nLVQuVZKCBW1i247qIf6aMhcA65zrZ7jWNKSHChXruoFOpLB/q4rp YxMt5KT5TXdx70JQgU5LxAX1Ap48NvmLeWOBuowk0Tkbq5VXPYBeuFetFj96Bi5D3s2l eTXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yZdYj4xUNtAS17eIdljWMHqlEpUmYI5NCeKfPxqq7Ng=; b=UTL2XWNDMR9lIzRKz5z45JPXyNccHGIj5oN+riG+Z3pK5+MTCyMQTOjXW5YNNzN7W9 UyOF3KNQiTh4WnoCTPELhkKkAQgjBTtAu8Po8rTMrpuh2LdH073lxKivQ6xK5PIounRc KHlASCwW2ZZXiJn9ACYq+ae3CW5PG1NzXySUHDmGzaDrL2fO/uIV6+OUzNL3KR3zhqHf XEGupbmSBYzpSf2kkKiURcs/VPz0neIYtWV2vPsHELDZRkscZ27P5ohEVN2VT+tirFcm WTQtvV651jb9Q26/Ik+jJz0Xp9TuPT/KHtdb7dzXhP+WLgot5bOTmIwovjH3i+CRvdJT 34Eg== X-Gm-Message-State: AO0yUKUBNH42eCtcazyqPuq7skEplXsYB0hxAN+gjrY46YBYeZWUx/Ia jLppZSktnbki8q6XIXEHo165gOre00btK7oF X-Received: by 2002:adf:e19c:0:b0:2c5:617f:e348 with SMTP id az28-20020adfe19c000000b002c5617fe348mr2301065wrb.25.1676567491508; Thu, 16 Feb 2023 09:11:31 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id f12-20020a5d4dcc000000b002c556a4f1casm2049107wru.42.2023.02.16.09.11.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 09:11:30 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 07/30] target/arm: Restrict CPUARMState::gicv3state to sysemu Date: Thu, 16 Feb 2023 17:11:00 +0000 Message-Id: <20230216171123.2518285-8-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230216171123.2518285-1-peter.maydell@linaro.org> References: <20230216171123.2518285-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42a.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=ham 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 From: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-id: 20230206223502.25122-8-philmd@linaro.org Signed-off-by: Peter Maydell --- target/arm/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 1c1e0334f01..002082eb5b6 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -769,9 +769,10 @@ typedef struct CPUArchState { void *nvic; const struct arm_boot_info *boot_info; +#if !defined(CONFIG_USER_ONLY) /* Store GICv3CPUState to access from this struct */ void *gicv3state; -#if defined(CONFIG_USER_ONLY) +#else /* CONFIG_USER_ONLY */ /* For usermode syscall translation. */ bool eabi; #endif /* CONFIG_USER_ONLY */