From patchwork Mon Feb 6 12:17:09 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: 650939 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp2238417pva; Mon, 6 Feb 2023 04:18:53 -0800 (PST) X-Google-Smtp-Source: AK7set/kX57wXAuTuPYdJNPYQaFsOVn88cyDAbbKmZmwTSqlkQOIfH2NhZ+6ijQYTpstDc8Y3HgA X-Received: by 2002:ac8:57c8:0:b0:3b8:6c84:aede with SMTP id w8-20020ac857c8000000b003b86c84aedemr33557247qta.17.1675685933062; Mon, 06 Feb 2023 04:18:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675685933; cv=none; d=google.com; s=arc-20160816; b=p5FKPN8KKlI0mYn24PB0LJT2NU/XtJsZBU/YsWZSBOJdLljCYOGHB2yVcNbjhLlXao 6YT341UdqkTjqbH1By7iHnfRnj0KNVML16HaO5Rfck+AOBrQWLblkhAV7WDikEUkNeFc CqDFclUo/D23xmeP5sR9m5DeLaV1wytm0nVU9gkiFHp9iY1vQ9Fg8Lo913c8yCNpZFeB 9FUKrL/cPdJsI+s7Fw0nW/dByJNCS7LlsVlMmDQ50LVxHzfcQGE1fEJgrbtwozeg89Ze bxWwLR69wH5hM+YuM5vk8xFPnyxswnx5emGllv/Ru+D+RAWdAEwT790+0GoUZoSYekyB Yfdw== 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=LXO14j3VKdWe9oMd0XtD7rpE8pnbdCJDTrrJ4g32Du4=; b=CC8XdxztmOkrD6r4x3WPTiy9RboGu4HZVn/4ni9joRsgMSb0cmgkKZDxnjgqhBFx2f ac2yWYae2CnUfQxZpmG48vamL0VS+VCo245GRtnQc4KiiIDb/olAiZBaCRwts5dN/03x wmj3+pITveu90R30jN9pHlgjTlr9CuhQ1WBu4CCcYGi4m0KmZZ6gLkTGieB7czd2Ba8j eOSuY/h7RzNdJqji2ISMuMAj/GEFU2yu4LFEEIk7W8ZOYm96wf6Vbm2n/xdjHICYXk05 KkEvQJp32OGG6jblqxDqN9dh1mZlMpmmAdFP2rMKquFEGpu6VNpe8i6YsCxVPIpgGIA1 gl8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tTqa5kVv; 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-20020a05622a164600b003ba26e15f75si2139012qtj.478.2023.02.06.04.18.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Feb 2023 04:18:53 -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=tTqa5kVv; 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 1pP0RX-00080n-C6; Mon, 06 Feb 2023 07:17:55 -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 1pP0RM-0007kh-7k for qemu-devel@nongnu.org; Mon, 06 Feb 2023 07:17:45 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pP0RI-0005pD-0O for qemu-devel@nongnu.org; Mon, 06 Feb 2023 07:17:42 -0500 Received: by mail-wm1-x330.google.com with SMTP id hn2-20020a05600ca38200b003dc5cb96d46so10602891wmb.4 for ; Mon, 06 Feb 2023 04:17:38 -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:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LXO14j3VKdWe9oMd0XtD7rpE8pnbdCJDTrrJ4g32Du4=; b=tTqa5kVvFUNGGqkuqndZaNDJTdCWxd3s4VkuhG/TI6WVUpJc1szlYoYwXLBPxAtehA huEnWvFDeUMDjN7s99YhxD6GWODnj3FFG1pXySaJtyDX1Qh/jGjhyW4DbQBJpZlbPBc4 xRLSCv8nxB6e6JUVbCTrfG2CugyiSIWj6WFIKKajBGSeIv0L/6FobLAiBaBHsj/vDdg5 +gjjdVSPFsXuaPS1CLPDJ8fI8gzyTvxKR2PQVfup2BGktGfQySGULEZUqXLALb1tG4XA COfSxzqnWeMTepnxH0Y+GVlasx38Xik7xWzA4I4yJJjuFV5dlWDWnwGFCyOt66RUuQHq +fAg== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LXO14j3VKdWe9oMd0XtD7rpE8pnbdCJDTrrJ4g32Du4=; b=sKK1HzZ2ceAbXV3I4nIXP2dK0aFq0Hhv4nFLX7FLqq+JfDayeLBC3nPddS7eh44Ss5 ktcrKZlqcv4OJIYgdEtTLU7VmCg+9/tzLAmb8KTiHakd67Lyi8UPXRZGz2nxYN99fQVr AQbWn3QO8qSlnvwpo+vPCZBB8Z+xYvi2mowCn0Sg+bIJcy0Qz2GEChJnkIpNHjLLW5Ca N0KcmP90qieMP4Z/JhrErTZ3PgX8IVOVsSttDlOaeeprTv3NflJnzis2jT15xTiDWdTu R+VwQSNaI/VkmQPCBATdmWlzesVl9aKWCB+nYaUon/5ClvByKezsxfTI3cJXrdaK/POj +gOQ== X-Gm-Message-State: AO0yUKX6xGwgnolVTw+57u7uO6tT5sD1c6UvzhTBFV66tpXFVnIrfhO/ eMVLFiejRLI2cor95J8RY6JGCqcDnR4omq7L X-Received: by 2002:a05:600c:3d92:b0:3df:e468:17dc with SMTP id bi18-20020a05600c3d9200b003dfe46817dcmr13312294wmb.40.1675685857362; Mon, 06 Feb 2023 04:17:37 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id bg24-20020a05600c3c9800b003e001afa274sm2564647wmb.2.2023.02.06.04.17.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 06 Feb 2023 04:17:36 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 4/9] target/arm: Restrict CPUARMState::arm_boot_info to sysemu Date: Mon, 6 Feb 2023 13:17:09 +0100 Message-Id: <20230206121714.85084-5-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230206121714.85084-1-philmd@linaro.org> References: <20230206121714.85084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- 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 bbbcf2e153..01d478e9ce 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -770,9 +770,10 @@ typedef struct CPUArchState { #if defined(CONFIG_USER_ONLY) /* For usermode syscall translation. */ int eabi; +#else + const struct arm_boot_info *boot_info; #endif void *nvic; - const struct arm_boot_info *boot_info; /* Store GICv3CPUState to access from this struct */ void *gicv3state;