From patchwork Tue Apr 15 17:22:44 2025 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: 881213 Delivered-To: patch@linaro.org Received: by 2002:adf:f902:0:b0:38f:210b:807b with SMTP id b2csp570105wrr; Tue, 15 Apr 2025 10:24:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXxRKPdmE4QK75MJ7uFGfwoTDzpGSeG5LSZdTIHzIU6HZu6b/Ax0ebmmDM3qnG5XtkhYYp9Ow==@linaro.org X-Google-Smtp-Source: AGHT+IFuGYvXQ5ILjLCs9Gb8Si0gZsfhnFsbPSG7Gyj5xrm/pOhVDuTtick2YkAj+n9hsQDnYl6K X-Received: by 2002:a05:622a:1806:b0:475:287:12fb with SMTP id d75a77b69052e-47ad3acb886mr2161921cf.36.1744737870907; Tue, 15 Apr 2025 10:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744737870; cv=none; d=google.com; s=arc-20240605; b=H9A6DPCBFvl08DOekHhUoAEESkDTCnpzFyugWQw6iCx6N0CshDF2R85/HkfddOXRbS SaXOx/3dUsz1i3EHRkJTEQedc/DN2PJN+1fAE2BFKV+s8gXGLuE2gHfOxZ7xXA8KkMzL PvmDGvF1nYJRAOyzisdCVvWusI+2jo+WJ+jgP8YRu6ZcYJ3KN/re/h1pIQ0iDgFRE4yJ HMZkFnW8G+cUnTgIzq3zEj9qXOkNCBY4RQ800AkuYFIRGf/j6nBCy3k5CRuplttMwxEd VFJImjteIWc6IGzFgiWWF6a7abeyxEDb3UivI3LsiYdTorW+xdu3hjMK0vHrimIbzUTT k3rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=Nbot2wM/CbjkQnVa9b2IWQsKjCHYPI93P9Z4ISNUVXc=; fh=5dDhRaRbX3tP9Vsj4H76VAlPUgnYVMxhznpdbMeD+Rc=; b=VGbzI7ZduxTMe2kABSzaX0GPwvSRP8R12+qMbMYIonaT1HuI0k7yAd8dAThLlnSvqz mc+Vm3JyWAQNOcmnCoZs4HHSBij1KXSK4qSkW1UpxLpHRCFWBV+NFHOOFxWO5dqU9M0E SShtJI13F6Gn9iNYttGDFhLrwFp3U6G+FTZXBE3L0CVbQLHQzGKSN07n0AMBwG/s6DCR EpqLXN6rN3Gs1AUfz8a4ThTeB1RSFWpG0B+591/LYDAW4y/+fAM9kWLf3Hv3OdZOhWdb LCn5RlzVPjl1jNZOKy3z4VWTvbJ6CeQ8YUsL5yyD4YdffCioh/A2nLiKnc8TUr2xAiaL HtPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qao/BCMK"; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4796edd3942si112031851cf.344.2025.04.15.10.24.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Apr 2025 10:24:30 -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="qao/BCMK"; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u4jzv-0000BH-2A; Tue, 15 Apr 2025 13:22:59 -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 1u4jzt-0000Ab-28 for qemu-devel@nongnu.org; Tue, 15 Apr 2025 13:22:57 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u4jzr-0006uL-7q for qemu-devel@nongnu.org; Tue, 15 Apr 2025 13:22:56 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-38f2f391864so3440070f8f.3 for ; Tue, 15 Apr 2025 10:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1744737773; x=1745342573; 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=Nbot2wM/CbjkQnVa9b2IWQsKjCHYPI93P9Z4ISNUVXc=; b=qao/BCMKJSmx1ahPLuD/cGtxbGQXcWIc+1YpPps1aXqLLiRK248Z5xI87F1RDaeNLI p20J4PxkuOaPNjk+Y1ROKcwd7hqZvKRzgAIawe8NymyoyyxFIckmVllSsp85uXRCkbt/ s6bA+iVLyLDB/AwdzAVa5pWaV+an4hosB2XQPcLTQtuhbNTcvQcNnvj7/Lq83Rtpm1yM Dj3HTMzf29igmbFDC5769c2wGXnhiq//ejIwabQMhu+ivOzF6iG2o2bzqAib02QSc3ar LlD9ZHI6iRDOUvbqQWd8j9DOgmhjosL5vGrMv8wunIeC0Wt+Amf81UEj5DNIUZ0qWTUn iRPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744737773; x=1745342573; 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=Nbot2wM/CbjkQnVa9b2IWQsKjCHYPI93P9Z4ISNUVXc=; b=TEGZENUaoMbul9UsTNbrFTf4Kh4rL7LAsJwlC3bsdziOewkch3x5rq+O4WtbWf2DUs 1UMPB3bn5mkwe5Sgz+iv0fAQLo7K0STMgRF460KEZGTwVGVKGHfV1xMqgU18Th2zJ3Mp 2J4Wng8tP6CwK6DmImU/44izB+iUIwPUyVq+yZlwPlucG5HUFovFKgXRqOlryax0E4nh fB3W66hlmBckQr/lKRkqAretR/WWfZighy0DCx70uHvU4Bczh6g8iB6h7I3gidjyz+an jqlhTdccRNx2CZLTq4nlAn5PSzevDOody1fVt5Kjzu2bfoxkPQyz3BpCeove7izXO0Ex jBVw== X-Gm-Message-State: AOJu0YzDqZWNlZ62M5nHgGAiWcUxWyXeQOKrjAkcdTLSinaNgwcqnRmG fDav7Z6pFRReB9Yw0AUOLCvWZYUd3fbrz+Baut9UD5Q9xWTboONR6OPq2ouGUPQ3M5nzARlgeKO S X-Gm-Gg: ASbGncuFgYq5wIogxiSQW1+6e5vwd21E+rwYOTgLYqRHriuXgqYDsV+wGQ0XPvkrWn2 YCMCz2E+3oxPQxnTjMLCsUH8KQRSWo1dJxvObQ4m7OIJJzwKCLC7JY9jUij4wADtOPFxj0PnGDr kU4hzpvwBSIcoWwk5YTYFZ5lW688xWFxPKcYgu5cBU9z+buN3AV/vzTeMYESmXuLYsElGtou7Va scuUPdcMzlvc7lKnLFVCd9zBk4psI/ZApQKe0U44dA+kxJ/xdMvlxSdeZ3y8FNFqMR3tutMFUyI VlmWIr3By4XOMsHpN+zWxORRuaAizlwjuxFrKX3mOlkebl5utFP3SPfRR5lXSlXB1TvW7T3l0Aa jKa8rQlNhgXtYifnVoupK X-Received: by 2002:a05:6000:381:b0:39c:12ce:1052 with SMTP id ffacd0b85a97d-39ee272a0cemr262324f8f.7.1744737772634; Tue, 15 Apr 2025 10:22:52 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eaf445454sm14808715f8f.83.2025.04.15.10.22.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 15 Apr 2025 10:22:52 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Richard Henderson , Anton Johansson , Peter Maydell , Pierrick Bouvier , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [RFC PATCH 1/3] target/arm: Replace target_ulong -> hwaddr in ARMMMUFaultInfo Date: Tue, 15 Apr 2025 19:22:44 +0200 Message-ID: <20250415172246.79470-2-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250415172246.79470-1-philmd@linaro.org> References: <20250415172246.79470-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.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: Pierrick Bouvier Reviewed-by: Richard Henderson --- target/arm/internals.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/arm/internals.h b/target/arm/internals.h index 28585c07555..175fb792375 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -25,6 +25,7 @@ #ifndef TARGET_ARM_INTERNALS_H #define TARGET_ARM_INTERNALS_H +#include "exec/hwaddr.h" #include "exec/breakpoint.h" #include "hw/registerfields.h" #include "tcg/tcg-gvec-desc.h" @@ -724,8 +725,8 @@ typedef struct ARMMMUFaultInfo ARMMMUFaultInfo; struct ARMMMUFaultInfo { ARMFaultType type; ARMGPCF gpcf; - target_ulong s2addr; - target_ulong paddr; + hwaddr s2addr; + hwaddr paddr; ARMSecuritySpace paddr_space; int level; int domain;