On 3/21/25 11:05, Richard Henderson wrote:
On 3/20/25 15:29, Pierrick Bouvier wrote:
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 <pierrick.bouv...@linaro.org>
---
   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)

Mmm, ok I guess.  Yesterday I would have suggested merging this with 
page-vary.h, but
today I'm actively working on making TARGET_PAGE_BITS_MIN a global constant.


When you mention this, do you mean "constant accross all architectures", or a global (const) variable vs having a function call?


r~


Reply via email to