diff options
| author | Greg Kurz | 2016-01-15 16:00:38 +0100 |
|---|---|---|
| committer | David Gibson | 2016-01-30 13:37:38 +0100 |
| commit | ea499e71506c91aa259a7fdccf1d6b2022f5b530 (patch) | |
| tree | b5a89a908f90ff3977feb5b093d33b4cf35f010b /linux-headers/linux | |
| parent | target-ppc: gdbstub: introduce avr_need_swap() (diff) | |
| download | qemu-ea499e71506c91aa259a7fdccf1d6b2022f5b530.tar.gz qemu-ea499e71506c91aa259a7fdccf1d6b2022f5b530.tar.xz qemu-ea499e71506c91aa259a7fdccf1d6b2022f5b530.zip | |
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>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions
