qemu-s390x
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 13/25] target/sh4: Use explicit little-endian LD/ST API


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 13/25] target/sh4: Use explicit little-endian LD/ST API
Date: Mon, 7 Oct 2024 16:59:12 -0300
User-agent: Mozilla Thunderbird

On 4/10/24 13:30, Philippe Mathieu-Daudé wrote:
Since commit 73ceb12960e ("Remove the unused sh4eb target")
we only build the SH4 architecture for 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/sh4/); \
     done

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  target/sh4/gdbstub.c | 36 ++++++++++++++++++------------------
  1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/target/sh4/gdbstub.c b/target/sh4/gdbstub.c
index 75926d4e049..194be1d5db3 100644
--- a/target/sh4/gdbstub.c
+++ b/target/sh4/gdbstub.c
@@ -80,59 +80,59 @@ int superh_cpu_gdb_write_register(CPUState *cs, uint8_t 
*mem_buf, int n)

As rth probably noticed, this is is wrong for the
sh4eb-linux-user target which we still build.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]