powerpc/math-emu: Fix load/store indexed emulation
authorJames Yang <James.Yang@freescale.com>
Thu, 4 Jul 2013 21:18:44 +0000 (16:18 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 04:59:57 +0000 (14:59 +1000)
commitcc7059b5ea730edde256deb94a42f8e9e732d9b8
tree227c68582067ee0700b8befa841e34f90b8b4ffa
parent5f20be4478032eeba66abddc79eae3abea45c5c8
powerpc/math-emu: Fix load/store indexed emulation

Load/store indexed instructions where the index register RA=R0, such
as "lfdx f1,0,r3", are not illegal.

Load/store indexed with update instructions where the index register
RA=R0, such as "lfdux f1,0,r3", are invalid, and, to be consistent
with existing math-emu behavior for other invalid instruction forms,
will signal as illegal.

Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/math-emu/math.c