Message ID | 20230818171227.141728-33-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp628456wrs; Fri, 18 Aug 2023 10:14:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1/gZRLnGoXrNSoykxHFUPISvtCO3J52JHKY2bvHOtcb6zvc37fd5Ul73t4gQpvQGbSRAG X-Received: by 2002:ac8:7dc3:0:b0:403:f38d:26f6 with SMTP id c3-20020ac87dc3000000b00403f38d26f6mr3951692qte.27.1692378856633; Fri, 18 Aug 2023 10:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692378856; cv=none; d=google.com; s=arc-20160816; b=NFcVNlBWHbnQjHvHx/zCFDokQnZ5O4fICHVBNEAaxxIw0gr5JsRIUvz2nW07LER5cN 1GS6NGnblDkcXe04sQ5pG/v/8VIimn2opaeRikBOkTRv4xNmMpvhmZK8TjBEk9gqnWq3 NrBKqKwLyMphIcbURJd/IjL8XnJlVDrYa7nvDNR1M99FLolnCeZe+SIbNyaULtiHWiDi R06A+GPCbHTqJ8axW6ThgTEC7f8WhHCYt3n7uHhvhnHxspBF/L6+pv29m1hkb65uDFSt KGfv4RaBKXww4/fIzKvXy62npv+8a5QhOzDPteHqmCn3DjbwVuYdDD9WUrDrd0f8iAQs azmg== 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:to:from :dkim-signature; bh=eX7UbTtp2FKEl6qFq7PUJtVbZ6Ita44vPDDEXKDHPg0=; fh=oYAd+8Lj9FKlReeF9hgENQXa3P4LhBP5C4njRBbobDA=; b=A67ZvkdMS+t2yW1WDO2IygTBFHIK2mhJD6S8r4PRvfsJEEcArBCINKlila0k7exyG3 +Ms45sewo7enn7M+R8aIttptng/4n3iJ1X9q8oqOHsFvxw2/u5/xFQ9e4Qq76JeeRHwU 9hZNv1VzRh2sjn6yfxOTmMHAd0rIung7K11Nd2Q+ILdlGQDSr0TaqoJwv7wTVc3TnlWe asaS3NEnrs2toFE3gpAIT97j03+vzAMdzBkvB9VNVhK0WCBKYbINVqxEuzUvCTIHWGKY Yspro3vPPdBvtR85mdJi1JrbtfcJpLs2/ibQx5AvQXC1KdluLKc/DI4T5rgf/AHcyzKh 2viA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lVT6TDsv; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w21-20020ac87e95000000b0040357313971si266039qtj.662.2023.08.18.10.14.16 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Aug 2023 10:14:16 -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=lVT6TDsv; 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 <qemu-devel-bounces@nongnu.org>) id 1qX32H-0000C4-9G; Fri, 18 Aug 2023 13:13:24 -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 <richard.henderson@linaro.org>) id 1qX324-0008OG-5Y for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:13:08 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1qX322-000888-Nu for qemu-devel@nongnu.org; Fri, 18 Aug 2023 13:13:07 -0400 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1bbff6b2679so8857105ad.1 for <qemu-devel@nongnu.org>; Fri, 18 Aug 2023 10:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692378785; x=1692983585; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=eX7UbTtp2FKEl6qFq7PUJtVbZ6Ita44vPDDEXKDHPg0=; b=lVT6TDsvgBeXc9GhiloNeJDVsWw8NpnT5ahjvF0tncObtjjwI8wL3ft22Tp6RA82i8 8+OIrXvRiw+6dg9YwxogUdCfOVkip1YJRvOP28qyOUb7u7ePPGq94Jm7QzwYB2mS1For Ye0J/C8iWDZYTvoKn9k40AdpS0oBGAatTCG8PMPhcE+ljowk3WQnSQGhd6cqbRm+GDjs 60yKxMEl9CL3wlKATG10enN0ixpcfJg3+Ab8oPEHbZKgXENq26NTURhVSIhO/+5oF8AI GsT6hhLSN1VGCrEwALyexU+ZvTh/R+6zlYrLt6eE9dSvwMlR6NjPePwADJzCAw6C8zCz EeyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692378785; x=1692983585; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eX7UbTtp2FKEl6qFq7PUJtVbZ6Ita44vPDDEXKDHPg0=; b=fkOET0yMUR1x5RhuEjXBwtAbUlJHqilS0Ue29O82orK+3DGKlHZK1Lam6NhqWkoF88 hmfhE0fyjVioGzEb0wG2WUx35E+nZKhO9IsDeU6vxAtrnN85l64WH09ow3eFcvRPy+gS MtiRvvuS6ye2OrHIXfEoSUV6vwwkeI3vW750O1oUk/tPxnE8D6S6fQ0ppinQ3YWaRoR+ I8dyC3iV9q5maluoWNQPrqbKw2v+CPjOQ6++6oYLsx702fErFP++vEd4aRMQyHUNJpYd VASGBxghK/675Kl7+2IwN8MCDquyKHFcASzCEKur86YPc58T3y9G7rUYrKDa33mSBzWO s99Q== X-Gm-Message-State: AOJu0YwN6A3kE0Q6TUxLLEnbmEqAdlR+H448NNIRzLO49EA1xmHmH6Ao EflskTyLUqJEPqaI+82n0j89sYGsrUdL9AEkaa4= X-Received: by 2002:a17:902:8688:b0:1bd:d141:f02d with SMTP id g8-20020a170902868800b001bdd141f02dmr2711161plo.68.1692378785437; Fri, 18 Aug 2023 10:13:05 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:cf24:6daf:2b9e:7972]) by smtp.gmail.com with ESMTPSA id jw24-20020a170903279800b001adf6b21c77sm2020025plb.107.2023.08.18.10.13.04 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Aug 2023 10:13:05 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH 32/33] target/ppc: Enable TARGET_PAGE_BITS_VARY for user-only Date: Fri, 18 Aug 2023 10:12:26 -0700 Message-Id: <20230818171227.141728-33-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230818171227.141728-1-richard.henderson@linaro.org> References: <20230818171227.141728-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
linux-user: Improve host and guest page size handling
|
expand
|
On 18/8/23 19:12, Richard Henderson wrote: > Since ppc binaries are generally built for multiple > page sizes, it is trivial to allow the page size to vary. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/ppc/cpu-param.h | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
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
Since ppc binaries are generally built for multiple page sizes, it is trivial to allow the page size to vary. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- target/ppc/cpu-param.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)