[kernel] r21680 - in dists/trunk/linux/debian: . patches patches/bugfix/mips
Aurelien Jarno
aurel32 at moszumanska.debian.org
Mon Aug 4 09:43:53 UTC 2014
Author: aurel32
Date: Mon Aug 4 09:43:53 2014
New Revision: 21680
Log:
[mips*] Fix FP emulation.
Added:
dists/trunk/linux/debian/patches/bugfix/mips/MIPS-math-emu-cp1emu-Fix-typo-when-returning-to-regi.patch
Modified:
dists/trunk/linux/debian/changelog
dists/trunk/linux/debian/patches/series
Modified: dists/trunk/linux/debian/changelog
==============================================================================
--- dists/trunk/linux/debian/changelog Mon Aug 4 09:32:59 2014 (r21679)
+++ dists/trunk/linux/debian/changelog Mon Aug 4 09:43:53 2014 (r21680)
@@ -3,6 +3,7 @@
[ Aurelien Jarno ]
* [x86] vfio: Enable VFIO_PCI_VGA.
* udeb: rename crc32c.ko into crc32c_generic.ko in crc-modules.
+ * [mips*] Fix FP emulation.
[ Bastian Blank ]
* [x86] Enable Xen PVH support.
Added: dists/trunk/linux/debian/patches/bugfix/mips/MIPS-math-emu-cp1emu-Fix-typo-when-returning-to-regi.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/linux/debian/patches/bugfix/mips/MIPS-math-emu-cp1emu-Fix-typo-when-returning-to-regi.patch Mon Aug 4 09:43:53 2014 (r21680)
@@ -0,0 +1,42 @@
+From: Rob Kendrick <rob.kendrick at codethink.co.uk>
+Date: Wed, 23 Jul 2014 13:41:58 +0100
+Subject: MIPS: math-emu: cp1emu: Fix typo when returning to register file
+Origin: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=8476cba1198d0869467d1d7bf0d5f8808a724986
+
+The commit 08a07904e182 (MIPS: math-emu: Remove most ifdefery) in
+v3.16-rc1 switched from build time to runtime detection for the CPU ISA
+level.
+
+However, along the way, a typo was introduced in the code path
+to return the value to the register file. Previously, the
+MIPSInst_FD macro was used but the above commit switched to
+MIPSInst_RT leading to regressions.
+
+Link: http://www.linux-mips.org/archives/linux-mips/2014-07/msg00484.html
+Reported-by: Rob Kendrick <rob.kendrick at codethink.co.uk>
+Reviewed-by: Paul Burton <paul.burton at imgtec.com>
+Signed-off-by: Markos Chandras <markos.chandras at imgtec.com>
+Signed-off-by: Rob Kendrick <rob.kendrick at codethink.co.uk>
+Tested-by: Aurelien Jarno <aurelien at aurel32.net>
+Patchwork: http://patchwork.linux-mips.org/patch/7448/
+Signed-off-by: James Hogan <james.hogan at imgtec.com>
+---
+ arch/mips/math-emu/cp1emu.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/mips/math-emu/cp1emu.c b/arch/mips/math-emu/cp1emu.c
+index 736c17a..bf0fc6b 100644
+--- a/arch/mips/math-emu/cp1emu.c
++++ b/arch/mips/math-emu/cp1emu.c
+@@ -1827,7 +1827,7 @@ dcopuop:
+ case -1:
+
+ if (cpu_has_mips_4_5_r)
+- cbit = fpucondbit[MIPSInst_RT(ir) >> 2];
++ cbit = fpucondbit[MIPSInst_FD(ir) >> 2];
+ else
+ cbit = FPU_CSR_COND;
+ if (rv.w)
+--
+1.7.10.4
+
Modified: dists/trunk/linux/debian/patches/series
==============================================================================
--- dists/trunk/linux/debian/patches/series Mon Aug 4 09:32:59 2014 (r21679)
+++ dists/trunk/linux/debian/patches/series Mon Aug 4 09:43:53 2014 (r21680)
@@ -54,6 +54,7 @@
bugfix/arm/ixp4xx_iobe.patch
bugfix/m68k/ethernat-kconfig.patch
bugfix/mips/MIPS-ZBOOT-add-missing-linux-string.h-include.patch
+bugfix/mips/MIPS-math-emu-cp1emu-Fix-typo-when-returning-to-regi.patch
# Miscellaneous bug fixes
bugfix/all/misc-bmp085-Enable-building-as-a-module.patch
More information about the Kernel-svn-changes
mailing list