[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/24] target/arm/cpu: Restrict cpu_untagged_addr() to user emula
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 10/24] target/arm/cpu: Restrict cpu_untagged_addr() to user emulation |
Date: |
Thu, 14 Nov 2024 02:12:55 +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>
---
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 d86e641280..12b8466542 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.45.2
- Re: [PATCH 06/24] target/rx/cpu: Include missing 'exec/translation-block.h' header, (continued)
- [PATCH 07/24] system/watchpoint: Include missing 'exec/cpu-all.h' header, Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 08/24] linux-user/aarch64/mte: Include missing 'user/abitypes.h' header, Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 09/24] target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation, Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 10/24] target/arm/cpu: Restrict cpu_untagged_addr() to user emulation,
Philippe Mathieu-Daudé <=
- [PATCH 11/24] exec: Introduce 'user/guest-host.h' header, Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 12/24] accel/tcg: Have tlb_vaddr_to_host() use vaddr type, Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 14/24] exec: Declare tlb_init/destroy() in 'exec/cputlb.h', Philippe Mathieu-Daudé, 2024/11/13