diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-03-06 13:32:36 -0800 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-03-07 13:02:54 -0800 |
| commit | 58d00538ceeef9900802bcd4b7ad613ca78c8583 (patch) | |
| tree | 871aa2a64e3cef02a2ae19bb42ee28c7fcb41ae1 /page-target.c | |
| parent | 3504f104ea97ffaa89f509db8059ec1047bd62ae (diff) | |
| download | focaccia-qemu-58d00538ceeef9900802bcd4b7ad613ca78c8583.tar.gz focaccia-qemu-58d00538ceeef9900802bcd4b7ad613ca78c8583.zip | |
include/exec: Move TARGET_PAGE_{SIZE,MASK,BITS} to target_page.h
Re-use the TARGET_PAGE_BITS_VARY mechanism to define
TARGET_PAGE_SIZE and friends when not compiling per-target.
Inline qemu_target_page_{size,mask,bits} as they are now trivial.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'page-target.c')
| -rw-r--r-- | page-target.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/page-target.c b/page-target.c index 82211c8593..321e43d06f 100644 --- a/page-target.c +++ b/page-target.c @@ -8,24 +8,6 @@ #include "qemu/osdep.h" #include "exec/target_page.h" -#include "exec/cpu-defs.h" -#include "cpu.h" -#include "exec/cpu-all.h" - -size_t qemu_target_page_size(void) -{ - return TARGET_PAGE_SIZE; -} - -int qemu_target_page_mask(void) -{ - return TARGET_PAGE_MASK; -} - -int qemu_target_page_bits(void) -{ - return TARGET_PAGE_BITS; -} int qemu_target_page_bits_min(void) { |