From patchwork Fri Sep 1 02:23:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 1828610 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=jyT2CQd6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RcMQV3Q58z1ygY for ; Fri, 1 Sep 2023 12:28:18 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbtpb-0007LW-Et; Thu, 31 Aug 2023 22:24:19 -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 1qbtpZ-0007B2-Mb for qemu-devel@nongnu.org; Thu, 31 Aug 2023 22:24:17 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbtpJ-0001TM-Vf for qemu-devel@nongnu.org; Thu, 31 Aug 2023 22:24:13 -0400 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-68a410316a2so1254094b3a.0 for ; Thu, 31 Aug 2023 19:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693535038; x=1694139838; 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=jyT2CQd6B/rywZOwyuojhg5esUhVLkKFczrXXF9re3qbvDuY3XFJqKaPAGHHLusDsI DS7e6YhX9JcPyOXWb97XfEVIh5Mxcwn2/GnxQkeQQqIOfeFhBN6pMTMo1jziFeHhzVk2 zLbqyGoJF62XYN6IdtMv8/Str46uJpjL7uZPnEQBqNr+9/dcSkQO0bFQ9PdD3i//Vaa7 TXaH6BjXiOGWYqabz/UZUw0MrqSwjYFLqxuIhNgOpu77wU51Bu1zlUKMvv5Oe8CdQhUE MyCV02yy2FYeYZI0zdfJsPhTY/H3lwbxyGEXVc9HExNY6Ta0u7yqHA2BO9z99CiazmpE xVZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693535038; x=1694139838; 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=QZBiMdrbB6y1hvUCmUP1UcrTZB0QHy68WJdd94r9PdXW466ggkATMa0RGx1feiQOZY hGPXo/MEHBa/a3g69liTVzLMTOSc9sEmeSQ7hCHhmAWsc7nHxaewhKvGk7Gq3tmkfzRH 4i+vt3PgVi1mWspY1dc0mkov2iOoRjo5Ts3YPxa4MS4H4Omo49tGwMw1g/2WuAtPY9DF 4xkvVhH4i54+s9BcXakM3maF9NFslPAJijMX02bdkOp9dgn6NbWPfvRaoJI4B5rcvNMS G7mbZ8+9NA32NUrZaTdREZmJ9iUtiYdJXdM6z7Q61oBhBF+2JvqIetn5yCozmgSEPWkl NDVw== X-Gm-Message-State: AOJu0Yxx1YJvn5GOm9TRu9iumkewef/3VYhjfLCJGqZ50ljJv1ZAHFhQ 2sHP4la1Bo8ZnstVf+IQe+lYtfoSGzTg/v9Rql4= X-Google-Smtp-Source: AGHT+IEmnslkpmpoflPk0bHFxu2fHYGr7hVf32XnM1j4Q1IL8CyB8Hb8tu8XaaxiJIjZHkyhTfl83w== X-Received: by 2002:a05:6a21:7903:b0:13d:ac08:6b79 with SMTP id bg3-20020a056a21790300b0013dac086b79mr1278500pzc.60.1693535038559; Thu, 31 Aug 2023 19:23:58 -0700 (PDT) Received: from stoup.. ([71.212.131.115]) by smtp.gmail.com with ESMTPSA id c25-20020aa781d9000000b0068a54866ca8sm1906977pfn.134.2023.08.31.19.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 19:23:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: laurent@vivier.eu, alex.bennee@linaro.org, =?utf-8?q?Philippe_Mathieu-Da?= =?utf-8?q?ud=C3=A9?= Subject: [PATCH v2 32/33] target/ppc: Enable TARGET_PAGE_BITS_VARY for user-only Date: Thu, 31 Aug 2023 19:23:30 -0700 Message-Id: <20230901022331.115247-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230901022331.115247-1-richard.henderson@linaro.org> References: <20230901022331.115247-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.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=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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.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 --- 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