]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Use explicit little-endian LD/ST API
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 13 Dec 2025 17:59:04 +0000 (18:59 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 12 Jan 2026 22:47:57 +0000 (23:47 +0100)
commitf9a03787c7fea997a5aa0641a5c16c7b15e21a2a
tree8de60d3e7de615872025b34fcb0bcb25ddf34433
parent91312a6d046d10506f6326168ea275a9b765cdba
target/loongarch: Use explicit little-endian LD/ST API

The LoongArch 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/loongarch/); \
    done

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-ID: <20251224161456.89707-1-philmd@linaro.org>
target/loongarch/cpu_helper.c
target/loongarch/tcg/iocsr_helper.c
target/loongarch/tcg/tlb_helper.c