qemu-e2k/target-ppc
Tom Musta bcb7652e8d target-ppc: Correct Simple VSR LE Host Inversions
A common pattern in the VSX helper code macros is the use of "x.fld[i]" where
"x" is a VSR and "fld" is an argument to a macro ("f64" or "f32" is passed).
This is not always correct on LE hosts.

This change addresses all instances of this pattern to be "x.fld" where "fld" is:

  - "VsrD(0)" for scalar instructions accessing 64-bit numbers
  - "VsrD(i)" for vector instructions accessing 64-bit numbers
  - "VsrW(i)" for vector instructions accessing 32-bit numbers

Note that there are no instances of this pattern where a scalar instruction
accesses a 32-bit number.

Note also that it would be correct to use "VsrD(i)" for scalar instructions since
the loop index is only ever "0".  I have choosen to use "VsrD(0)" instead ... it
seems a little clearer.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Tested-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2014-04-08 11:20:02 +02:00
..
arch_dump.c target-ppc: Add missing 'static' and 'const' attributes 2014-03-19 18:35:52 +01:00
cpu-models.c target-ppc: remove powerpc 970gx 2014-03-05 03:06:23 +01:00
cpu-models.h target-ppc: remove powerpc 970gx 2014-03-05 03:06:23 +01:00
cpu-qom.h target-ppc: Use PowerPCCPU in PowerPCCPUClass::handle_mmu_fault hook 2014-03-13 19:20:48 +01:00
cpu.h target-ppc: Introduce powerisa-207-server flag 2014-03-20 02:39:33 +01:00
excp_helper.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
fpu_helper.c target-ppc: Correct Simple VSR LE Host Inversions 2014-04-08 11:20:02 +02:00
gdbstub.c cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
helper_regs.h cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
helper.h target-ppc: Altivec 2.07: Vector Permute and Exclusive OR 2014-03-05 03:07:00 +01:00
int_helper.c target-ppc: Add missing 'static' and 'const' attributes 2014-03-19 18:35:52 +01:00
kvm_ppc.c PPC: KVM: Compile fix for qemu_notify_event 2013-09-02 10:06:42 +02:00
kvm_ppc.h target-ppc: add PowerPCCPU::cpu_dt_id 2014-03-05 03:07:03 +01:00
kvm-stub.c kvm/openpic: in-kernel mpic support 2013-07-01 01:11:14 +02:00
kvm.c exec: Change cpu_abort() argument to CPUState 2014-03-13 19:52:28 +01:00
machine.c target-ppc: Add missing 'static' and 'const' attributes 2014-03-19 18:35:52 +01:00
Makefile.objs target-ppc: dump-guest-memory support 2013-10-25 23:25:48 +02:00
mem_helper.c target-ppc: Little Endian Correction to Load/Store Vector Element 2013-10-25 23:25:45 +02:00
mfrom_table_gen.c
mfrom_table.c
misc_helper.c cputlb: Change tlb_flush() argument to CPUState 2014-03-13 19:52:47 +01:00
mmu_helper.c cputlb: Change tlb_set_page() argument to CPUState 2014-03-13 19:52:47 +01:00
mmu-hash32.c cputlb: Change tlb_set_page() argument to CPUState 2014-03-13 19:52:47 +01:00
mmu-hash32.h target-ppc: Use PowerPCCPU in PowerPCCPUClass::handle_mmu_fault hook 2014-03-13 19:20:48 +01:00
mmu-hash64.c cputlb: Change tlb_set_page() argument to CPUState 2014-03-13 19:52:47 +01:00
mmu-hash64.h target-ppc: Use PowerPCCPU in PowerPCCPUClass::handle_mmu_fault hook 2014-03-13 19:20:48 +01:00
STATUS target-ppc: remove powerpc 970gx 2014-03-05 03:06:23 +01:00
timebase_helper.c
translate_init.c target-ppc: MSR_POW not supported on POWER7/7+/8 2014-03-27 16:15:34 +01:00
translate.c cpu: Move breakpoints field from CPU_COMMON to CPUState 2014-03-13 19:20:47 +01:00
user_only_helper.c cpu: Move exception_index field from CPU_COMMON to CPUState 2014-03-13 19:20:46 +01:00