[ARM] 3499/1: Fix VFP FPSCR corruption for double exception case
authorGeorge G. Davis <davis_g@mvista.com>
Fri, 5 May 2006 21:32:23 +0000 (22:32 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 5 May 2006 21:32:23 +0000 (22:32 +0100)
commitb7d7ef87e15dea105be59ec8f14e2f92182dd421
tree2dc6e24528e63900f42bdf8a73e6bfcce1249692
parent2eb9d3157107497fdccb51e1570fea677f6e3c82
[ARM] 3499/1: Fix VFP FPSCR corruption for double exception case

Patch from George G. Davis

The ARM VFP FPSCR register is corrupted when a condition flags modifying
VFP instruction is followed by a non-condition flags modifying VFP
instruction and both instructions raise exceptions.  The fix is to
read the current FPSCR in between emulation of these two instructions
and use the current FPSCR value when handling the second exception.

Signed-off-by: George G. Davis <gdavis@mvista.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vfp/vfpmodule.c