diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-10-04 12:09:54 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-10-15 11:55:09 -0300 |
commit | c9ddc704f90331e42a17d040d8ad287d371cfbb7 (patch) | |
tree | 01174163c4a653e39f20fde898b1986b26fad38c | |
parent | f02657980295869498802c870623490e509ca51d (diff) | |
download | qemu-c9ddc704f90331e42a17d040d8ad287d371cfbb7.zip qemu-c9ddc704f90331e42a17d040d8ad287d371cfbb7.tar.gz qemu-c9ddc704f90331e42a17d040d8ad287d371cfbb7.tar.bz2 |
target/alpha: Use explicit little-endian LD/ST API
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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241004163042.85922-7-philmd@linaro.org>
-rw-r--r-- | target/alpha/gdbstub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/alpha/gdbstub.c b/target/alpha/gdbstub.c index bf5091c..1a7e2dd 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) { |