mirror of
https://github.com/qemu/qemu.git
synced 2026-07-09 10:06:23 +00:00
target/hppa: Use explicit big-endian LD/ST API
The HPPA architecture uses big endianness. Directly use
the big-endian LD/ST API.
Mechanical change using:
$ end=be; \
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/hppa/); \
done
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20251229225517.45078-4-philmd@linaro.org>
This commit is contained in:
@@ -168,7 +168,7 @@ int hppa_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
|
||||
return 0;
|
||||
}
|
||||
|
||||
val = ldn_p(mem_buf, hppa_reg_size(env));
|
||||
val = ldn_be_p(mem_buf, hppa_reg_size(env));
|
||||
|
||||
switch (n) {
|
||||
case 0:
|
||||
|
||||
@@ -178,7 +178,7 @@ void hppa_cpu_do_interrupt(CPUState *cs)
|
||||
break;
|
||||
}
|
||||
}
|
||||
env->cr[CR_IIR] = ldl_phys(cs->as, paddr);
|
||||
env->cr[CR_IIR] = ldl_be_phys(cs->as, paddr);
|
||||
if (i == EXCP_ASSIST) {
|
||||
/* stuff insn code into bits of FP exception register #1 */
|
||||
env->fr[0] |= (env->cr[CR_IIR] & 0x03ffffff);
|
||||
|
||||
Reference in New Issue
Block a user