qemu/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 qemu: per-arch cpu_has_work (Marcelo Tosatti) 2009-04-24 18:03:20 +00:00
helper_regs.h Update FSF address in GPL/LGPL boilerplate 2009-01-04 22:05:52 +00:00
helper.c Include assert.h from qemu-common.h 2009-05-13 20:54:26 +01:00
helper.h target-ppc: mark a few helpers TCG_CALL_CONST and/or TCG_CALL_PURE 2009-04-16 12:57:58 +00:00
kvm_ppc.c targets: remove error handling from qemu_malloc() callers (Avi Kivity) 2009-02-05 22:06:11 +00:00
kvm_ppc.h kvm/powerpc: extern one function for MPC85xx code use 2009-01-24 16:35:56 +00:00
kvm.c target-ppc: Enable KVM for ppcemb. 2008-12-16 10:43:58 +00:00
machine.c kvm: Add missing bits to support live migration 2009-05-22 10:50:33 -05:00
mfrom_table_gen.c find -type f | xargs sed -i 's/[\t ]*$//g' # Yes, again. Note the star in the regex. 2007-09-17 08:09:54 +00:00
mfrom_table.c find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
op_helper.c Fix mingw32 build warnings 2009-06-13 08:44:31 +00:00
STATUS Update PowerPC emulation status file. 2007-10-25 21:38:16 +00:00
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