diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-03-28 14:28:06 -0500 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-04-23 15:04:57 -0700 |
| commit | d11bf649d587dec050b6ba900a8f9baea1fe157d (patch) | |
| tree | a6e18a4b50dd0942de2d42d8f422415df2a95b37 /include/exec/cpu-defs.h | |
| parent | 12eeb04ab4dd98f802ffc503f0da948a8c843086 (diff) | |
| download | focaccia-qemu-d11bf649d587dec050b6ba900a8f9baea1fe157d.tar.gz focaccia-qemu-d11bf649d587dec050b6ba900a8f9baea1fe157d.zip | |
page-vary: Restrict scope of TARGET_PAGE_BITS_MIN
The only place we really need to know the minimum is within page-vary-target.c. Rename the target/arm TARGET_PAGE_BITS_MIN to TARGET_PAGE_BITS_LEGACY to emphasize what it really means. Move the assertions related to minimum page size as well. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec/cpu-defs.h')
| -rw-r--r-- | include/exec/cpu-defs.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h index 9f955f53fd..e01acb7c90 100644 --- a/include/exec/cpu-defs.h +++ b/include/exec/cpu-defs.h @@ -34,14 +34,8 @@ #ifndef TARGET_VIRT_ADDR_SPACE_BITS # error TARGET_VIRT_ADDR_SPACE_BITS must be defined in cpu-param.h #endif -#ifndef TARGET_PAGE_BITS -# ifdef TARGET_PAGE_BITS_VARY -# ifndef TARGET_PAGE_BITS_MIN -# error TARGET_PAGE_BITS_MIN must be defined in cpu-param.h -# endif -# else -# error TARGET_PAGE_BITS must be defined in cpu-param.h -# endif +#if !defined(TARGET_PAGE_BITS) && !defined(TARGET_PAGE_BITS_VARY) +# error TARGET_PAGE_BITS must be defined in cpu-param.h #endif #include "exec/target_long.h" |