[POWERPC] Fix handling of stfiwx math emulation
commitf772dcde07136d67393ad32b7572fdd7e180e556
authorKumar Gala <galak@kernel.crashing.org>
Thu, 18 Oct 2007 16:00:21 +0000 (18 18:00 +0200)
committerAdrian Bunk <bunk@kernel.org>
Thu, 18 Oct 2007 16:00:21 +0000 (18 18:00 +0200)
treecaa583fe57e90e84a61cc6278246987a842cb08f
parentc94861ff9759f5f73b49fb4f0fe0c000b82c703a
[POWERPC] Fix handling of stfiwx math emulation

Its legal for the stfiwx instruction to have RA = 0 as part of its
effective address calculation.  This is illegal for all other XE
form instructions.

Add code to compute the proper effective address for stfiwx if
RA = 0 rather than treating it as illegal.

Adrian Bunk:
Backported to 2.6.16.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
arch/ppc/math-emu/math.c