[PATCH v2 0/6] MIPS: math-emu: FP emulation fixes and improvements

From: Aleksandar Markovic
Date: Mon Aug 21 2017 - 08:29:15 EST


From: Aleksandar Markovic <aleksandar.markovic@xxxxxxxxxx>

v1->v2:

- corrected a number of spelling and other minor mistakes in commit
messages
- rebased to the latest code

This series includes:

- a fix for certain SIGILL program crashes on issuing a valid CMP
instruction
- a fix for RINT emulation inaccuracies
- a fix for the output of CLASS.D instruction emulation
- several FP emulation debugfs statistics improvements

The patches in this series are logically and physically independent on
the patches previously sent in "Misc" series. This means that these
two series can be applied independently, in any order.

Aleksandar Markovic (6):
MIPS: math-emu: CMP.Sxxx.<D|S>: Prevent occurrences of SIGILL crashes
MIPS: math-emu: RINT.<D|S>: Fix several problems by reimplementation
MIPS: math-emu: CLASS.D: Zero bits 32-63 of the result
MIPS: math-emu: Add FP emu debugfs statistics for branches
MIPS: math-emu: Add FP emu debugfs clear functionality
MIPS: math-emu: Add FP emu debugfs stats for individual instructions

MAINTAINERS | 7 +
arch/mips/include/asm/fpu_emulator.h | 116 +++++++++++++
arch/mips/math-emu/Makefile | 6 +-
arch/mips/math-emu/cp1emu.c | 272 +++++++++++++++++++++++++++++-
arch/mips/math-emu/dp_rint.c | 89 ++++++++++
arch/mips/math-emu/ieee754.h | 2 +
arch/mips/math-emu/me-debugfs.c | 318 ++++++++++++++++++++++++++++++++++-
arch/mips/math-emu/sp_rint.c | 90 ++++++++++
8 files changed, 888 insertions(+), 12 deletions(-)
create mode 100644 arch/mips/math-emu/dp_rint.c
create mode 100644 arch/mips/math-emu/sp_rint.c

--
2.9.3