From patchwork Tue May 23 13:53:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 684962 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1733925wrt; Tue, 23 May 2023 06:59:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4pSoLQtEJ92jMqH1PveUvCUmWBQf3vYSPApO1eSSpURhlWar6QrS2qfd3MjgIIfUgzqn+X X-Received: by 2002:a05:620a:6008:b0:75b:23a1:3ed with SMTP id dw8-20020a05620a600800b0075b23a103edmr4654006qkb.3.1684850396252; Tue, 23 May 2023 06:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684850396; cv=none; d=google.com; s=arc-20160816; b=Il7z3rjPYxTVgSHqnIALju3cq4ZRgIsLp/sKO9U1Fe5Tgvnm63EqGy0AC9JELlzVAv GvfL3EBHus0dEEVFAxOIN2tJtZgrhxA0arOckP2tKYr41hBq2WAis0Z9hJgYwEqTi8Mv ZNySIt7RbJ5WshG38bAiu5ayTHWrhUUg8upY84oCWvawkrWCueu9z20lJKzbiBc+BHTM clmsy9uEXiaTlQP+phhyDlEVFhaAGkzUL7GITCzO9pYgWjRb/VD/7kwbAVLOuMcbQtGF GTfmXi3I7Ml9pNpylasI3tWnH++z9kt+c3Wne1MW0b02q5oa/eE4cWhdraLMWeUeTVHG QJeA== 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=wDxG1Fumi/VCBapDyQzvtsqcUgkmKE+Qvv/KLvwRg5E=; b=k8utffqvaJ+PbVdINRN85xQVHCHQMkteOnQjhw/TW/Azl1ZuTCBZYn5kRWv0RuptKe chowiHZ2L4LwEbTNGIJs/RrntK+ZSoKwI+YDAMBLQ6pINn30gKVy31WMUe8ddvyodtS8 W2PV4Nk5fhGlhuGQ8uL8m12JayXt7qtuqqPRB/qp1ldBT+17bvoq41oT/UUHmxcsOvbj dLLZ2dXMAab5KzM7h6eEaq9AyatqOFKQX+YSWaLbaViPdZdAAClXtF7crY3fsq8Yk+uv RValf2oPd5knICyWyLBqIK4STUP6PdZfnIOwoK8zH4cSqQeGzTxWIPbvuph51pC7m5KS pBGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qylaO6wj; 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 e7-20020a0562141d0700b0062382fd904csi5310185qvd.356.2023.05.23.06.59.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 May 2023 06:59:56 -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=qylaO6wj; 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 1q1STM-0007Ad-SP; Tue, 23 May 2023 09:54:46 -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 1q1SSV-00056F-VI for qemu-devel@nongnu.org; Tue, 23 May 2023 09:53:52 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1SSU-00034Z-9L for qemu-devel@nongnu.org; Tue, 23 May 2023 09:53:51 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-64d3fbb8c1cso4743854b3a.3 for ; Tue, 23 May 2023 06:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684850029; x=1687442029; 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=wDxG1Fumi/VCBapDyQzvtsqcUgkmKE+Qvv/KLvwRg5E=; b=qylaO6wjLa6jrS/JoLX/9+IqF+DFMk/RzcFJyd6qnv/x3RqqBbhEhK5UeO33/vOR4t rl8zyo7bKL6nm4nSNC9Pva1M+GVpr5Khk9IswI+ZouP3rMAfQ3ULhKLgbNkNpeHzQ/Gt GoQlfTpxPpxfHdizQ5IHPWb699rbXrRGXRSVbSGUICLx38BFhrU3iqOgXc8jeCVDO4LA 7f3ZGL3jGW3dR22joqJnGlVbElex+gdEJ9Kp7CzDQdbeh67zv1scO2oJTcZGxPa97iQH SCF1BK37Qse30+5FdgaMWqXKezNDdAKOqEh68q0hdmNQQnV5tLQB/jwB2zNoQi3kW3qM vMmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684850029; x=1687442029; 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=wDxG1Fumi/VCBapDyQzvtsqcUgkmKE+Qvv/KLvwRg5E=; b=TyN4txqapCrJjZKOmeWHoh+O82Sg5UWrJnJ8EtVQ8mjKNQnpTbwYoY19Zjb9x221fx Ks2U+OucYVMo5QB9NOtK9BFkvu6dUjuTVZ46hL1MTwdXcJSmJoGfjkjWxNdDw7J2RHRj sAKnw20K8Xg66aPGrMNGJoqP6pud2Ha4JtDVOf1IxMmCFb838mG+8a+6NhUTPxrkYqUl wGyfOaXbK5QtKmXRrEf45/bgIUCKe8hd02YRCGcKzwAlt5Jx5hCp24i4gv1peaUVr4PU 9AJoOfjLoR6Qqeajt9CVqOzrUWBPuubvQIDa92c1SF9wMogaWOwI7Uwyh7/asIY2a0Rr nQJQ== X-Gm-Message-State: AC+VfDzijzaxeZKb1vLPQFBizuBkTF7XgjWpqNCWAS8MyReTHzEulg5B wGXMzyVu8DXD65TllA9C2d+FCtdkCtj9SsLCLiE= X-Received: by 2002:a05:6a00:1a46:b0:62a:d752:acc5 with SMTP id h6-20020a056a001a4600b0062ad752acc5mr21424417pfv.32.1684850029449; Tue, 23 May 2023 06:53:49 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:c13a:d73:4f88:3654]) by smtp.gmail.com with ESMTPSA id b8-20020aa78708000000b0064d27a28451sm5796111pfo.100.2023.05.23.06.53.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 06:53:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 31/52] exec-all: Widen tb_page_addr_t for user-only Date: Tue, 23 May 2023 06:53:01 -0700 Message-Id: <20230523135322.678948-32-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230523135322.678948-1-richard.henderson@linaro.org> References: <20230523135322.678948-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.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, T_SCC_BODY_TEXT_LINE=-0.01 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 This is a step toward making TranslationBlock agnostic to the address size of the guest. Signed-off-by: Richard Henderson --- include/exec/exec-all.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index ecded1f112..8c8526d9f8 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -34,8 +34,8 @@ addresses in userspace mode. Define tb_page_addr_t to be an appropriate type. */ #if defined(CONFIG_USER_ONLY) -typedef abi_ulong tb_page_addr_t; -#define TB_PAGE_ADDR_FMT TARGET_ABI_FMT_lx +typedef vaddr tb_page_addr_t; +#define TB_PAGE_ADDR_FMT "%" VADDR_PRIx #else typedef ram_addr_t tb_page_addr_t; #define TB_PAGE_ADDR_FMT RAM_ADDR_FMT