qemu-e2k/target-ppc
Nathan Froyd 33890b3e0d target-ppc: fix evmergelo and evmergelohi
For 32-bit PPC targets, we translated:

evmergelo rX, rX, rY

as:

rX-lo = rY-lo
rX-hi = rX-lo

which is wrong, because we should be transferring rX-lo first.  This
problem is fixed by swapping the order in which we write the parts of
rX.

Similarly, we translated:

evmergelohi rX, rX, rY

as:

rX-lo = rY-hi
rX-hi = rX-lo

In this case, we can't swap the assignment statements, because that
would just cause problems for:

evmergelohi rX, rY, rX

Instead, we detect the first case and save rX-lo in a temporary
variable:

tmp = rX-lo
rX-lo = rY-hi
rX-hi = tmp

These problems don't occur on PPC64 targets because we don't split the
SPE registers into hi/lo parts for such targets.

Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2009-07-12 23:36:21 +02:00
..
cpu.h Hardware convenience library 2009-05-19 16:17:58 +01:00
exec.h
helper_regs.h
helper.c Include assert.h from qemu-common.h 2009-05-13 20:54:26 +01:00
helper.h
kvm_ppc.c
kvm_ppc.h
kvm.c
machine.c kvm: Add missing bits to support live migration 2009-05-22 10:50:33 -05:00
mfrom_table_gen.c
mfrom_table.c
op_helper.c Fix mingw32 build warnings 2009-06-13 08:44:31 +00:00
STATUS
translate_init.c target-ppc: permit linux-user to read PVR 2009-06-23 21:11:22 +04:00
translate.c target-ppc: fix evmergelo and evmergelohi 2009-07-12 23:36:21 +02:00