From patchwork Tue Jan 2 01:58:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 759356 Delivered-To: patch@linaro.org Received: by 2002:a5d:67c6:0:b0:336:6142:bf13 with SMTP id n6csp5857444wrw; Mon, 1 Jan 2024 18:03:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqUXk42LV39KeGKt6xIY1LcwuLCwTytV0BkY1ggVCC5yoAIln5O17JA41t0OPzJvbMe6ZQ X-Received: by 2002:a05:620a:14a9:b0:77f:8c54:da15 with SMTP id x9-20020a05620a14a900b0077f8c54da15mr20627012qkj.40.1704160991179; Mon, 01 Jan 2024 18:03:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704160991; cv=none; d=google.com; s=arc-20160816; b=raKJDn4P6nFz6Wvb2kmLqQewtoR9U1auH+x17ZgJfi4SNTtQrNMS60itnFviBqUfm2 leB1Coq6ja2fdF/EMR14NL0Q4boeyex5rBL6odEKgsNf+JjTFfV1e7+d5Ie7xxWwOavK SxBd8L/bU55Gz4C1oML4Qz/WOK3eCKv4n6DobsO48q3GPXHLmV3HIwurNpHg3ArQHpOU +6yfkRPFnmkYxWn5nJRPTyrRFhwqjldtGtN4h1mlL+wNVERlNoeEBgl6Q2zQG+bz7IWE yQpYnpxaB8M+EBPuEu8ZtC6szo9mrqcA8qwat7wZAarkD4CEPwQaGVi8sIz7DGkE80eV /RnA== 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=YzcEJzTW0FxXggtPi1Qrm/hCkn19peXK5YmTgg9HZqo=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=HW2nGcE5yxBz5tQeJry7GWZpLYJFS9M1lsP3bZ0S25GUBUEF+cq3g4/4mGFiSFTWYn PrBsoYgjn58Gqzw2hs9ZrgrI174qWJLqdwHSRJcOdK4r0YrfQErub6HXNpUUY9cVtM1K Ajir99kQ2s6X8gBsVXn1kgXKgbC1gQqpRp1Kvl6Hd3bjC3aBW6pZxAfHZCuJhoZz/6Tg g4+e/A4xSJK7mI1GIzafuO/TNJFuyO0x7qUbUA0knFlm8LtlRgqQFjZ852ROveLSqrmT BWGeNLJaFNbaXUBWIQ7IGNZQ1ANMxRVgQzY5EqCVw7fEqo/9BpBGk9m1NuLIeXSyQpiK BAOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VO745913; 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 u17-20020a05620a023100b00780f8f53c87si26006929qkm.695.2024.01.01.18.03.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Jan 2024 18:03:11 -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=VO745913; 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 1rKU41-0004lj-7H; Mon, 01 Jan 2024 20:59:29 -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 1rKU3z-0004ib-GM for qemu-devel@nongnu.org; Mon, 01 Jan 2024 20:59:27 -0500 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rKU3s-00077B-O2 for qemu-devel@nongnu.org; Mon, 01 Jan 2024 20:59:27 -0500 Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3bbbf5a59b7so4339660b6e.3 for ; Mon, 01 Jan 2024 17:59:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704160759; x=1704765559; 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=YzcEJzTW0FxXggtPi1Qrm/hCkn19peXK5YmTgg9HZqo=; b=VO745913dsuHX2SLsDvYLQNo6hJS46AwNkxsfMcQmrlkBf2kpVCNV/9X7Ksml++tXH kTDHSWDHItq8t3YPlFjPCGiLFGJrmoTbco5gtvZClfilow6S+1rpazuXlaev1neXFduP RPyJSBoP/If2rRyCelysW+NL4hmnB7LbMZqAqpZWBsH4rZZIMJkSYaTsvZ5Bj6dWwxwW Tr+Xi3fROCD00hBIFa502xxZdYCVQyuc7QaWiUusEWBOwT/qH7jTT2bt6cF2cTusR7SL ZSxlUtuOQw6lPsmytOkH5wG+zKKp5SL9bX27xAFmUDx78BrWZwL2DTc/yCbPXQ1Gq4xf eGBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704160759; x=1704765559; 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=YzcEJzTW0FxXggtPi1Qrm/hCkn19peXK5YmTgg9HZqo=; b=WfuQXhSpILCIG06tvq4kGfwkWIDJnyZG36nldmbcknUF/PBzfgPgTq7m9UdovqFtUC rLpM+i3W4IDuIfc2A257Pg8TlBHF97K+evQRyuifxXd+QKsIk17CgMMYxmhL/S+xQIJ3 Yu3R/1JaIhgvpn3HLvhFF22dQUJ+rgO8Dz5mKTCv83sxLar7htAGuYnkQGjyGU7/IBad +H8aMs/3Vo7OPtcgSJ0ghExhp6IsToZR0ucK6s5Vvp2/9FKsMqXYSaTXLLGg1k/byn+2 glXew30KmCZOUms49QOHtqctQVr9SPB7rLujq8x7BaYUCMQ96hTb/S7wRdR/NSRSQSU6 iRWw== X-Gm-Message-State: AOJu0Yycfm71EoX7sphSVHpEBYfeQ7IsQ5LPl/ClgCeY1mIPwybxtAY+ drTKaYRhykGczQho0GBn2hAT4tG1EX27o/7b6wVVvPEY2cc= X-Received: by 2002:a05:6808:16a3:b0:3bb:d7e8:d8e9 with SMTP id bb35-20020a05680816a300b003bbd7e8d8e9mr8161374oib.109.1704160759687; Mon, 01 Jan 2024 17:59:19 -0800 (PST) Received: from stoup.. (124-149-254-207.tpgi.com.au. [124.149.254.207]) by smtp.gmail.com with ESMTPSA id g33-20020a635221000000b0058ee60f8e4dsm19561891pgb.34.2024.01.01.17.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 17:59:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 32/33] target/ppc: Enable TARGET_PAGE_BITS_VARY for user-only Date: Tue, 2 Jan 2024 12:58:07 +1100 Message-Id: <20240102015808.132373-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240102015808.132373-1-richard.henderson@linaro.org> References: <20240102015808.132373-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22f; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22f.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, 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 Since ppc binaries are generally built for multiple page sizes, it is trivial to allow the page size to vary. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Ilya Leoshkevich --- target/ppc/cpu-param.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target/ppc/cpu-param.h b/target/ppc/cpu-param.h index 0a0416e0a8..b7ad52de03 100644 --- a/target/ppc/cpu-param.h +++ b/target/ppc/cpu-param.h @@ -31,6 +31,13 @@ # define TARGET_PHYS_ADDR_SPACE_BITS 36 # define TARGET_VIRT_ADDR_SPACE_BITS 32 #endif -#define TARGET_PAGE_BITS 12 + +#ifdef CONFIG_USER_ONLY +/* Allow user-only to vary page size from 4k */ +# define TARGET_PAGE_BITS_VARY +# define TARGET_PAGE_BITS_MIN 12 +#else +# define TARGET_PAGE_BITS 12 +#endif #endif