[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 05/25] gdbstub/helpers: Introduce ldtul_$endian_p() helpers
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 05/25] gdbstub/helpers: Introduce ldtul_$endian_p() helpers |
Date: |
Fri, 4 Oct 2024 13:30:21 -0300 |
Introduce ldtul_le_p() and ldtul_be_p() to use directly
in place of ldtul_p() when a target endianness is fixed.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/gdbstub/helpers.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/gdbstub/helpers.h b/include/gdbstub/helpers.h
index fd83e366a51..e783d166865 100644
--- a/include/gdbstub/helpers.h
+++ b/include/gdbstub/helpers.h
@@ -99,5 +99,7 @@ static inline uint8_t *gdb_get_reg_ptr(GByteArray *buf, int
len)
#endif
#define ldtul_p(addr) ldn_p(addr, TARGET_LONG_SIZE)
+#define ldtul_le_p(addr) ldn_le_p(addr, TARGET_LONG_SIZE)
+#define ldtul_be_p(addr) ldn_be_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é, 2024/10/04
- [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é <=
- [PATCH v2 06/25] target/alpha: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 07/25] target/hexagon: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 08/25] hw/i386: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 09/25] target/i386: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/04
- [PATCH v2 10/25] target/avr: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/04