]> git.proxmox.com Git - mirror_qemu.git/commit - target/ppc/translate_init.c.inc
target-ppc: gdbstub: fix altivec registers for little-endian guests
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Fri, 15 Jan 2016 15:00:38 +0000 (16:00 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 30 Jan 2016 12:37:38 +0000 (23:37 +1100)
commitea499e71506c91aa259a7fdccf1d6b2022f5b530
treeb5a89a908f90ff3977feb5b093d33b4cf35f010b
parent87601e2d5c22d9c1fef0e09978d377f46336c1db
target-ppc: gdbstub: fix altivec registers for little-endian guests

Altivec registers are 128-bit wide. They are stored in memory as two
64-bit values that must be byteswapped when the guest is little-endian.
Let's reuse the ppc_maybe_bswap_register() helper for this.

We also need to fix the ordering of the 64-bit elements according to
the target endianness, for both system and user mode.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate_init.c