mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
target/openrisc: Use explicit big-endian LD/ST API
The OpenRISC architecture uses big endianness. Directly
use the big-endian LD/ST API.
Mechanical change running:
$ for a in uw w l q; do \
sed -i -e "s/ld${a}_p(/ld${a}_be_p(/" \
$(git grep -wlE '(ld|st)u?[wlq]_p' target/openrisc/);
done
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Manos Pitsidianakis <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-ID: <[email protected]>
This commit is contained in:
1 parent
32d4256839
commit
16c0efb5a7
1 file changed
+1
-1
@@ -50,7 +50,7 @@ int openrisc_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
|
||||
CPUOpenRISCState *env = cpu_env(cs);
|
||||
uint32_t tmp;
|
||||
|
||||
tmp = ldl_p(mem_buf);
|
||||
tmp = ldl_be_p(mem_buf);
|
||||
|
||||
if (n < 32) {
|
||||
cpu_set_gpr(env, n, tmp);
|
||||
|
||||
Reference in new issue
Block a user