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: 719493 Delivered-To: patch@linaro.org Received: by 2002:ab3:1981:0:b0:23f:8cfb:5ad7 with SMTP id 1csp17991lti; Thu, 31 Aug 2023 19:28:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1jSb0zvMi91PDRlMeFPpEwe+H2O4+ynH7LtvXg+THzTX5sS7N3EVDW+QI9Ob+D0vGIz8q X-Received: by 2002:ac8:7f0c:0:b0:410:a073:7538 with SMTP id f12-20020ac87f0c000000b00410a0737538mr1470151qtk.29.1693535297738; Thu, 31 Aug 2023 19:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693535297; cv=none; d=google.com; s=arc-20160816; b=iOwn+J9A4JNZANd5jrcanNBI5YWtZNqW1+AisoDwwgCJGY7kcpNClH2W4l9n2a+d4p 3nyYUBUngf999BHzrJW52U/kBA5wU+E84CyKm5tXbgcs+pu6T8WLiEqzg1ohxCMkfnTf yzOOx6aN2tnS1Wap8mqiyOAsqOKuzvaRVb9KoIU13E8XXBKRmS4TRbY7hRtLfhJ3Awkr xYC6QF4NCyiKuAOQa8fz8JCSGE/6IYZtMHTW0/RiRrQ1G/VI2u6ufwPkMV7n47cWo52Y VB3UcDzg04tjN7nCx7p//ebEFD9Y550nkLo7zveZSHocAmJOGkeGGUaLqdTGYo/hAxtI JPpw== 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=SfxhhCERWPFe9EfsSkQ0zw+VJgdUi+jLlAbxANM8dQo=; b=CJHtMaT1Uoynd0r88m0cniAyVqnbHKMw2SEpj+Q1bL/OImaW5YexTo8OAcsvaRLw2l QwoLSAkkxbZsxCLqS7oF1FFvtjtwKI3SjIpyan2v93SHvQfm2QoHvwyDRH6blmjAhue5 SX80x0wAFLt4iyTzsWyMqLrV+fn74YNDXv1Bh+AD18eUC83QrjgBcUPVmgJaYRydzNoM njkPg+0anEM67hocsCg6QkyyVNtZ46EL8HdJDjN1G4T1IgT1Wydl/13R++U7QWFR7r9a VoLvu45GGmALbjg9cmpOaK/kGpd5cmm2AFJajiiRFFSEDEamDkZwDQqbvTqn4Pabs0Gq gndw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jyT2CQd6; 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 u15-20020a05622a010f00b0040ca95dea94si1751062qtw.6.2023.08.31.19.28.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 Aug 2023 19:28:17 -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=jyT2CQd6; 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 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-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+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 --- 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