[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 06/25] target/alpha: Use explicit little-endian LD/ST API
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 06/25] target/alpha: Use explicit little-endian LD/ST API |
Date: |
Fri, 4 Oct 2024 13:30:22 -0300 |
The Alpha architecture uses little endianness. Directly use
the little-endian LD/ST API.
Mechanical change using:
$ end=le; \
for acc in uw w l q tul; do \
sed -i -e "s/ld${acc}_p(/ld${acc}_${end}_p(/" \
-e "s/st${acc}_p(/st${acc}_${end}_p(/" \
$(git grep -wlE '(ld|st)t?u?[wlq]_p' target/alpha/); \
done
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/alpha/gdbstub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/alpha/gdbstub.c b/target/alpha/gdbstub.c
index bf5091c2a6e..1a7e2dd9202 100644
--- a/target/alpha/gdbstub.c
+++ b/target/alpha/gdbstub.c
@@ -59,7 +59,7 @@ int alpha_cpu_gdb_read_register(CPUState *cs, GByteArray
*mem_buf, int n)
int alpha_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
{
CPUAlphaState *env = cpu_env(cs);
- target_ulong tmp = ldq_p(mem_buf);
+ target_ulong tmp = ldq_le_p(mem_buf);
CPU_DoubleU d;
switch (n) {
--
2.45.2
- [PATCH v2 01/25] gdbstub/helpers: Have ldtul_p() definition use ldn_p(), (continued)
- [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é, 2024/10/04
- [PATCH v2 06/25] target/alpha: Use explicit little-endian LD/ST API,
Philippe Mathieu-Daudé <=
- [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
- [PATCH v2 11/25] linux-user/i386: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/04