From patchwork Mon Jun 5 20:15:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 689268 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp2288851wru; Mon, 5 Jun 2023 13:27:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ49XQ1ocYiW5Zp2yl9NGXbiI5UjNGcYzyxFwonGBvHqtsuj02NJ5lWh2mXYyrZT8ZFbypf1 X-Received: by 2002:a05:620a:2d92:b0:75b:23a1:8e7c with SMTP id tr18-20020a05620a2d9200b0075b23a18e7cmr711579qkn.77.1685996868113; Mon, 05 Jun 2023 13:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685996868; cv=none; d=google.com; s=arc-20160816; b=iG+Iv9zDnT5THsD5TmlfQGaVw5YezzsmuTXq5XMH20zH7cR3ODI7AjvvKbPfMeugLS XiqWBgetw1JsDUis7B74S6aKHe6ZX/TPS3KgZldMyZ9NoOokZ+REuxRyoS+pVjEwmQ11 npSkPH2C+qxBNCAwDyPDFfsThLaHis9XB2LkXRREeYRgWjY4ctPuQO6AN2YfQLAYqT+Z FP8xxfMLMnbzOMosfy1A5JpSD3IUYI7XxLVgiuOZnt3MXsZGUgBQXIgUT9HpZaKPyG6h gDv7BP08OzKqXcgwfyIAB4vT5QLvdfxQv23jKjU8WR088/3Lm6y0VkaQlqMDAqFBdoWL wJIQ== 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=JtgBRGxv4LHPMzETUNJDv9zePk7Nq2QT5FVC8r8aRSI=; b=h5FQX4/UtxruzQsB5IM0OBljq/s15xD0Dt7AAJSW04mWaGBvwWfxy3JFAPFMcEP1uB suVj/YuAEUYuU04r4j1QQ9jA7W9Xzoz3dIymEIaKa2oAaLhpMllSj+KBQdTUOvkSJusf 16v3Ktod4YiDTDuWGmJsz/L0IbnxOlvc/osc1SmMm5MJwxB845YWz1NCMa9AtMmgywxF v0DL5b7DCpImN9DkBORtkay4FIOh1EvjZNmfcBGoy2vukmtHeSYciyfk2mkWpLMs3e7M ZeYc2XJZvBc0fVcnW8jqcPYYy+PwaqzW31/muoXEIH+5vCgygARixIkprI6IYdMVtcGP XLVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="khWtX/Cx"; 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 c22-20020a05620a165600b00757970ad032si5002789qko.86.2023.06.05.13.27.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Jun 2023 13:27:48 -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="khWtX/Cx"; 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 1q6Gd5-00025r-P2; Mon, 05 Jun 2023 16:16:39 -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 1q6Gcr-0001xX-4H for qemu-devel@nongnu.org; Mon, 05 Jun 2023 16:16:26 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6Gcj-00045f-Qi for qemu-devel@nongnu.org; Mon, 05 Jun 2023 16:16:23 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-65299178ac5so4817540b3a.1 for ; Mon, 05 Jun 2023 13:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685996176; x=1688588176; 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=JtgBRGxv4LHPMzETUNJDv9zePk7Nq2QT5FVC8r8aRSI=; b=khWtX/Cx5Mwl3P5pZnNM2SPo/0tGqQChHLciwte8WMqqtFdbDDJ9zl1hxh9Zy0wii7 ioCsIW6eHb4vxEV88kZnvxQ1n4i91rV9jUYgJDwBKlFQ08Tanui9+vJWRUBuIpuvlNLg WXUD6ciEUA/D1nusaCkfRE0fvntZf00pY9CvIMO7KQGLpQZw9oMtC1oMF7TyRqM2rRc6 doUP3AmU4K/3Et+lv8ToN0fmqwHd4oX995H8/cBUchTauN86jgqn6JnfCo4r5B+glt6E Xn1bJt0qfs2r3bnQq3SHuKccuXXZ2WmjYO/lq7v+hP4jkVgiIEL3+lvCSWzHtIsEVsoL MHRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685996176; x=1688588176; 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=JtgBRGxv4LHPMzETUNJDv9zePk7Nq2QT5FVC8r8aRSI=; b=TV8zce+TeY3IqOPynRrbOVFGU+pQF6k2jDgqcLK+3PjEgVcFUFzqZAKq0w89Iep/xM +0pWrGxLDmWieBHuZuEgwuYqbTIabATTEftJJJEQ1gXC3FFIxMUnxbz4ARQXphd3Q/qr d+rSKP8pYSsKLlAW/4F/EYYL2qAfNBjWiLgALIm98C8rODVXl7RAMADgEPH4552RCJ+G hR34vQ/t2RDxo8bbMRAmeSEJecIEpS5pWoRQZQS7O5sS15IJaLOGi++r5H0X5iHS7Lrg +jTd0lAyCTM0cgtSfW4fThqUuyVST7qIa2VfEN8+RsAEgBdTU6MN6eR49eTyp4aHhcF5 z9Vg== X-Gm-Message-State: AC+VfDxaXpkzW3PmFDBwCKHoGR9b+WcMfb9ocuQ0f6DcshKLCHL+Vhhf QpqEARbJe4FiAY6VfhxRmdIOW+48/4qEAxMQ04A= X-Received: by 2002:a05:6a00:1405:b0:64e:bce9:3229 with SMTP id l5-20020a056a00140500b0064ebce93229mr1036186pfu.9.1685996176605; Mon, 05 Jun 2023 13:16:16 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:3f85:a600:6a3e:e465]) by smtp.gmail.com with ESMTPSA id f18-20020aa78b12000000b0064d32771fa8sm5552924pfd.134.2023.06.05.13.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jun 2023 13:16:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 31/52] exec-all: Widen tb_page_addr_t for user-only Date: Mon, 5 Jun 2023 13:15:27 -0700 Message-Id: <20230605201548.1596865-32-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230605201548.1596865-1-richard.henderson@linaro.org> References: <20230605201548.1596865-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x430.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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. Reviewed-by: Philippe Mathieu-Daudé 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 3b1b57f6ad..ec0902c532 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -31,8 +31,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