[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 21/59] target/arm/cpu: Restrict cpu_untagged_addr() to user emulat
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 21/59] target/arm/cpu: Restrict cpu_untagged_addr() to user emulation |
Date: |
Fri, 20 Dec 2024 17:15:12 +0100 |
Move the #endif guard where it belongs to restrict
the cpu_untagged_addr() implementation to user
emulation.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241114011310.3615-11-philmd@linaro.org>
---
target/arm/cpu.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index d86e641280d..12b84665427 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -3355,8 +3355,8 @@ extern const uint64_t pred_esz_masks[5];
#define TAG_GRANULE (1 << LOG2_TAG_GRANULE)
#ifdef CONFIG_USER_ONLY
+
#define TARGET_PAGE_DATA_SIZE (TARGET_PAGE_SIZE >> (LOG2_TAG_GRANULE + 1))
-#endif
#ifdef TARGET_TAGGED_ADDRESSES
/**
@@ -3382,6 +3382,7 @@ static inline target_ulong cpu_untagged_addr(CPUState
*cs, target_ulong x)
}
return x;
}
-#endif
+#endif /* TARGET_TAGGED_ADDRESSES */
+#endif /* CONFIG_USER_ONLY */
#endif
--
2.47.1
- [PULL 09/59] qom: Create system containers explicitly, (continued)
- [PULL 09/59] qom: Create system containers explicitly, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 10/59] target/i386/sev: Reduce system specific declarations, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 11/59] include: Rename sysemu/ -> system/, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 12/59] system: Move 'exec/confidential-guest-support.h' to system/, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 13/59] tcg/tci: Include missing 'disas/dis-asm.h' header, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 14/59] accel/tcg: Include missing 'exec/tswap.h' header in translator.c, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 15/59] accel/tcg: Have tlb_vaddr_to_host() use vaddr type, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 16/59] exec/cpu-all: Include missing 'exec/cpu-defs.h' header, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 19/59] linux-user/aarch64: Include missing 'user/abitypes.h' header, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 17/59] exec/cpu-defs: Remove unnecessary headers, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 21/59] target/arm/cpu: Restrict cpu_untagged_addr() to user emulation,
Philippe Mathieu-Daudé <=
- [PULL 18/59] exec/translation-block: Include missing 'exec/vaddr.h' header, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 22/59] target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 25/59] accel/tcg: Declare mmap_[un]lock() in 'exec/page-protection.h', Philippe Mathieu-Daudé, 2024/12/20
- [PULL 26/59] accel/tcg: Use tb_page_addr_t type in page_unprotect(), Philippe Mathieu-Daudé, 2024/12/20
- [PULL 20/59] user: Introduce 'user/guest-host.h' header, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 32/59] accel/tcg: Really restrict cpu_io_recompile() to system emulation, Philippe Mathieu-Daudé, 2024/12/20
- [PULL 34/59] accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (2/4), Philippe Mathieu-Daudé, 2024/12/20
- [PULL 29/59] accel/tcg: Move 'exec/translate-all.h' -> 'tb-internal.h', Philippe Mathieu-Daudé, 2024/12/20
- [PULL 30/59] accel/tcg: Un-inline log_pc(), Philippe Mathieu-Daudé, 2024/12/20
- [PULL 38/59] user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h', Philippe Mathieu-Daudé, 2024/12/20