From nobody Tue Nov 26 22:17:31 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1704160991; cv=none; d=zohomail.com; s=zohoarc; b=jE1mR80JfkO1dLaTz3kdCAn48ZjrcHCcefVRkNFO+5F085yH+vyjvHsoQWNWJ+HO5Mr2JpDSmzqaCL+n3zfv+kb6AIiJgImrtYR6OrKrGKOcVMF6Ygb5M/iM/xTQKv3mt6UK2fq2JmMrxpaOGfb0ZmiYF0/j2Py2859PRoxEZ4E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704160991; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=YzcEJzTW0FxXggtPi1Qrm/hCkn19peXK5YmTgg9HZqo=; b=PWffdNbXv476SOsTnc2mV2qMgx8sJ1eL48YKo9d18bXKfKh/gGZ1ZhCWRkYS2Xou1F2ibbXNpH25qr1ydl+QeatJlxN8QMUKcat61X18MfTlW8d0C5mSX+/nkd3w9C0ZB0TXpsaTirYUj/EfAW0e9b8cqwznvVoYD+wfdHCEgLk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704160991289201.40516847734864; Mon, 1 Jan 2024 18:03:11 -0800 (PST) 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) 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) 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-Google-Smtp-Source: AGHT+IFQNcHWcw3KkJhcwY8+VfSAVyEyJmczxmS5MF1V39TwLfThdfJexxvi9KATckhMuXtPKPW3Dw== 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) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1704160991863100003 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=C3=A9 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 =20 #endif --=20 2.34.1