From nobody Fri Apr 4 05:07:11 2025 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=1742273775; cv=none; d=zohomail.com; s=zohoarc; b=eu4Uq8fzOkbKVT1d45ZFZkVrowS8w+lAKI9odKAc6t6gyEVPPrAJna4URkA5acoHrxU5GFD6l1Id4kyzbUGay4VCDOoOSzhAzYRZvglgmVWOr6QzW6sqfzc3TEOpP3e7GSp7YdGfXKf3pJzpOYbIvYI3AD3gQuGRrOZRBs/3K8A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742273775; h=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=7b7Pa/XivG7M4hjK9jqso2S4d+dz1DGry6GtvIR3C8c=; b=gX73zbphRsam/2NPLTEA0CQ5M1Ck2TdnQ3BCYMaG74DDyMy3YQMeThU7TJias5nRwPy2BuNYv0USnLtJqxefyvpZ62sBhHfxjyilsC0uRXO1eJIHM4rcVe/F1vrazJCJK+eCQhwx++NQM2fyriy04e364ApRhaK05P2Ae0N7N+E= 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 1742273775213488.822333612118; Mon, 17 Mar 2025 21:56:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tuOw8-0001OG-CQ; Tue, 18 Mar 2025 00:52:20 -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 1tuOvX-0001EL-F2 for qemu-devel@nongnu.org; Tue, 18 Mar 2025 00:51:49 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tuOvR-0008SO-BH for qemu-devel@nongnu.org; Tue, 18 Mar 2025 00:51:38 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-225df540edcso68625445ad.0 for ; Mon, 17 Mar 2025 21:51:36 -0700 (PDT) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73711694b2csm8519195b3a.129.2025.03.17.21.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Mar 2025 21:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742273496; x=1742878296; 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=7b7Pa/XivG7M4hjK9jqso2S4d+dz1DGry6GtvIR3C8c=; b=KWZbl+v7Bs/kss0BYGp6DXqxgf2RJV2wxi9kkOrpEQ4/t+mB7aB3Fd82FqUYy/0aOt X+ZkuQvkFLZnUma6qXQ3vTBqYIwO5b7DX83s5GYkvJRGKQtZlzzEvOULbRslc65KID0h PXKUTlFL1UEzo3fpx86FC2E2FgWCZuJCjVdNKK0b9YbZXx/wHq9tcTkQ52VflqoYVnt5 O2RMXhHTxlTSKqa6QCvmEEzCQOlqSCDM7GpBnPMzcQqbpl3megIZ7rBEt1tr3Q4TBCO1 w3vMG3TnRLbyIkACaWl+PjUmxaxbC2Up7VAyLOyHErN7AWrKOHVUMEq52P2pRp9xsgoh L1TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742273496; x=1742878296; 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=7b7Pa/XivG7M4hjK9jqso2S4d+dz1DGry6GtvIR3C8c=; b=itPb2+9GxXQdmHousakXWIjthjifi5U7pFipvC+NexocbNZGOqImcJdkPrnAJIRqes iTCR5ezpmmgJxTp9B8D6h7ZTq73g8IVkea7M8WuwGdJTZiw3haCFZO+vhCcrSnW5CPT+ 1Ua3IYsvLhLtbzr88k5IIc9j7+W6k9zcHzvxvkw/Pm2V2p8FhC++BEveTt4OlDkemV8d nw9LPoSScpMFUy2LuN3xAU0J6K4J9Gp6lGGqoEXKCIX6Krk7KXDoblCnmX4wK4VkqFj1 lKQsQ3NYI3mb6nOePNQCVg/2WV0FTxc+w7cvHg8bJH2/h4S9epMpmAZO6NkZbd1riJ+o uDzQ== X-Gm-Message-State: AOJu0YyC8SOLRdZifuGXzxa79YGduBY2uy8ObU2wFibSRyUdEaF51FjH Hl6kSYchJ/yLj8x2qu6ON+wsZIUv5/GCp+9pcHSegkV3njjA0lVZXCYc/rZvLP2UcQcoVyhAa4D m X-Gm-Gg: ASbGncsenhJXuYxdL24zlAbMMq4Wz5c/bmRIbB77xmeCledN0CHfzuH2ISd64IkMojD CM0Rr2iUspL8Rw6AAyTiRnauPfj4dkuQFpmCEfAMBJKGzA9lY8BPSANGUrcczns6MofVawGqEr+ +9QyvlBAJ1oSc700c8ZVuXhQCSx35totQejpMzOOMl0l4kbH7JRfUbhE2l7bFmoY6XpgIPZHbRG Qpdf1EoJIT91ls0G2kCXF6oGYXYSUnn40CVuVLx8S3xBiCttNjXB0OJJHmY8BZ/QB56Y0qQMnee lBN0zOsfkMyxh1EFP3cs5JCol0vJ1kP6TwaViJq/qDLU X-Google-Smtp-Source: AGHT+IGfy+Qdd4zIdkaKpSIgsiwDKH+mdyBXjzWe2NY8Kt3gZWsIWhQbMwLpqie8RWdAjPyywqbjZw== X-Received: by 2002:a05:6a21:1f8d:b0:1ee:b5f4:b1d7 with SMTP id adf61e73a8af0-1fa4f9540cbmr3123721637.7.1742273495989; Mon, 17 Mar 2025 21:51:35 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-arm@nongnu.org, alex.bennee@linaro.org, Peter Maydell , kvm@vger.kernel.org, Paolo Bonzini , Richard Henderson , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH 03/13] exec/target_page: runtime defintion for TARGET_PAGE_BITS_MIN Date: Mon, 17 Mar 2025 21:51:15 -0700 Message-Id: <20250318045125.759259-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250318045125.759259-1-pierrick.bouvier@linaro.org> References: <20250318045125.759259-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 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::62a; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62a.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1742273777920019100 Content-Type: text/plain; charset="utf-8" We introduce later a mechanism to skip cpu definitions inclusion, so we can detect it here, and call the correct runtime function instead. Signed-off-by: Pierrick Bouvier --- include/exec/target_page.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/exec/target_page.h b/include/exec/target_page.h index 8e89e5cbe6f..aeddb25c743 100644 --- a/include/exec/target_page.h +++ b/include/exec/target_page.h @@ -40,6 +40,9 @@ extern const TargetPageBits target_page; # define TARGET_PAGE_MASK ((TARGET_PAGE_TYPE)target_page.mask) # endif # define TARGET_PAGE_SIZE (-(int)TARGET_PAGE_MASK) +# ifndef TARGET_PAGE_BITS_MIN +# define TARGET_PAGE_BITS_MIN qemu_target_page_bits_min() +# endif #else # define TARGET_PAGE_BITS_MIN TARGET_PAGE_BITS # define TARGET_PAGE_SIZE (1 << TARGET_PAGE_BITS) --=20 2.39.5