[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 01/25] gdbstub/helpers: Have ldtul_p() definition use ldn_p()
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 01/25] gdbstub/helpers: Have ldtul_p() definition use ldn_p() |
Date: |
Fri, 4 Oct 2024 13:30:17 -0300 |
Use ldn_p(TARGET_LONG_SIZE) instead of ldl_p() / ldq_p().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/gdbstub/helpers.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/gdbstub/helpers.h b/include/gdbstub/helpers.h
index 26140ef1ac0..fd83e366a51 100644
--- a/include/gdbstub/helpers.h
+++ b/include/gdbstub/helpers.h
@@ -94,10 +94,10 @@ static inline uint8_t *gdb_get_reg_ptr(GByteArray *buf, int
len)
#if TARGET_LONG_BITS == 64
#define gdb_get_regl(buf, val) gdb_get_reg64(buf, val)
-#define ldtul_p(addr) ldq_p(addr)
#else
#define gdb_get_regl(buf, val) gdb_get_reg32(buf, val)
-#define ldtul_p(addr) ldl_p(addr)
#endif
+#define ldtul_p(addr) ldn_p(addr, TARGET_LONG_SIZE)
+
#endif /* _GDBSTUB_HELPERS_H_ */
--
2.45.2
- [PATCH v2 00/25] misc: Use explicit endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 01/25] gdbstub/helpers: Have ldtul_p() definition use ldn_p(),
Philippe Mathieu-Daudé <=
- [PATCH v2 02/25] target/hexagon: Replace ldtul_p() -> ldl_p(), Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 03/25] target/alpha: Replace ldtul_p() -> ldq_p(), Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 04/25] target/s390x: Replace ldtul_p() -> ldq_p(), Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 05/25] gdbstub/helpers: Introduce ldtul_$endian_p() helpers, Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 06/25] target/alpha: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/04