[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH-for-10.1 5/9] target/arm/mte: Reduce address_with_allocation_tag(
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH-for-10.1 5/9] target/arm/mte: Reduce address_with_allocation_tag() scope |
Date: |
Sat, 5 Apr 2025 00:35:17 +0200 |
address_with_allocation_tag() is only used in mte_helper.c,
move it there.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/arm/internals.h | 5 -----
target/arm/tcg/mte_helper.c | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/target/arm/internals.h b/target/arm/internals.h
index 01408e40a34..0728e5c5348 100644
--- a/target/arm/internals.h
+++ b/target/arm/internals.h
@@ -1701,11 +1701,6 @@ static inline int allocation_tag_from_addr(uint64_t ptr)
return extract64(ptr, 56, 4);
}
-static inline uint64_t address_with_allocation_tag(uint64_t ptr, int rtag)
-{
- return deposit64(ptr, 56, 4, rtag);
-}
-
/* Return true if tbi bits mean that the access is checked. */
static inline bool tbi_check(uint32_t desc, int bit55)
{
diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c
index 9dcdc1d91c1..8a6e6e4719d 100644
--- a/target/arm/tcg/mte_helper.c
+++ b/target/arm/tcg/mte_helper.c
@@ -205,6 +205,11 @@ static uint8_t *allocation_tag_mem(CPUARMState *env, int
ptr_mmu_idx,
ptr_size, tag_access, false, ra);
}
+static inline uint64_t address_with_allocation_tag(uint64_t ptr, int rtag)
+{
+ return deposit64(ptr, 56, 4, rtag);
+}
+
uint64_t HELPER(irg)(CPUARMState *env, uint64_t rn, uint64_t rm)
{
uint16_t exclude = extract32(rm | env->cp15.gcr_el1, 0, 16);
--
2.47.1
- [PATCH-for-10.1 0/9] target/arm: Remove some TARGET_AARCH64 uses (MTE & gdbstub), Philippe Mathieu-Daudé, 2025/04/04
- [PATCH-for-10.1 1/9] target/arm: Remove uses of TARGET_AARCH64 in arch_dump.c, Philippe Mathieu-Daudé, 2025/04/04
- [PATCH-for-10.1 2/9] target/arm: Remove use of TARGET_AARCH64 in dump.c, Philippe Mathieu-Daudé, 2025/04/04
- [PATCH-for-10.1 5/9] target/arm/mte: Reduce address_with_allocation_tag() scope,
Philippe Mathieu-Daudé <=
- [PATCH-for-10.1 4/9] target/arm/mte: Include missing headers for GETPC(), Philippe Mathieu-Daudé, 2025/04/04
- [PATCH-for-10.1 6/9] target/arm/mte: Rename 'mte_helper.h' as generic 'mte.h', Philippe Mathieu-Daudé, 2025/04/04
- [PATCH-for-10.1 7/9] target/arm/mte: Restrict MTE declarations, Philippe Mathieu-Daudé, 2025/04/04
- [PATCH-for-10.1 3/9] target/arm: Remove use of TARGET_AARCH64 in arm_cpu_initfn(), Philippe Mathieu-Daudé, 2025/04/04
- [PATCH-for-10.1 8/9] linux-user/arm: Implement MTE stubs for 32-bit user emulation, Philippe Mathieu-Daudé, 2025/04/04
- [PATCH-for-10.1 9/9] target/arm: Build Aarch64 gdbstub helpers indistinctly, Philippe Mathieu-Daudé, 2025/04/04