]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit3fb7c3cf3e9b38b9f3e8029f479a07e61f055a9d
tree2dc6e24528e63900f42bdf8a73e6bfcce1249692
parent7d5f1c3ea21759efb048ea15e32a44aa2a35bf3f
[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