Skip to content

FPU and FP emulation clean-ups, fixes and feature updates

Maciej W. Rozycki linux-mips 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest48 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/48doc: kernel-parameters.txt: Mark `nofpu' for MIPS tooDocumentation/kernel-parameters.txt+1 -10 replies
2/48MIPS: mipsregs.h: Remove broken commentsarch/mips/include/asm/mipsregs.h+0 -60 replies
3/48MIPS: mipsregs.h: Reorder CP1 macro definitionsarch/mips/include/asm/mipsregs.h+75 -720 replies
4/48MIPS: mipsregs.h: Move TX39 macros out of the wayarch/mips/include/asm/mipsregs.h+33 -330 replies
5/48MIPS: mipsregs.h: Reindent CP0 Cause macrosarch/mips/include/asm/mipsregs.h+14 -140 replies
6/48MIPS: ieee754.h: Correct comments for special valuesarch/mips/math-emu/ieee754.h+2 -20 replies
7/48MIPS: ieee754.h: Supplement comments for special valuesarch/mips/math-emu/ieee754.h+17 -170 replies
8/48MIPS: Correct the comment for FPU emulator trapsarch/mips/kernel/traps.c+3 -30 replies
9/48MIPS: Clarify the comment for `__cpu_has_fpu'arch/mips/kernel/cpu-probe.c+1 -10 replies
10/48MIPS: math-emu: Reindent `bc_op' emulationarch/mips/math-emu/cp1emu.c+11 -110 replies
11/48MIPS: Correct the comment for and reformat `movf_func'arch/mips/kernel/mips-r2-to-r6-emul.c+4 -10 replies
12/48MIPS: math-emu: Fix oversize lines in comparisonsarch/mips/math-emu/dp_cmp.c arch/mips/math-emu/sp_cmp.c+4 -20 replies
13/48MIPS: ELF: Drop `get_fp_abi'arch/mips/kernel/elf.c+2 -120 replies
14/48MIPS: mips-r2-to-r6-emul.h: Inline empty `mipsr2_decoder'arch/mips/include/asm/mips-r2-to-r6-emul.h+1 -10 replies
15/48MIPS: Reindent R6 RI exception emulationarch/mips/kernel/traps.c+15 -160 replies
16/48MIPS: math-emu: Remove `modeindex' macroarch/mips/math-emu/cp1emu.c+8 -180 replies
17/48MIPS: bitops.h: Avoid inline asm for constant FLSarch/mips/include/asm/bitops.h+4 -30 replies
18/48MIPS: math-emu: Factor out CFC1/CTC1 emulationarch/mips/math-emu/cp1emu.c+48 -282 replies
19/48MIPS: Normalise code flow in the CpU exception handlerarch/mips/kernel/traps.c+7 -80 replies
20/48MIPS: Use `FPU_CSR_ALL_X' in `__build_clear_fpe'arch/mips/kernel/genex.S+1 -10 replies
21/48MIPS: math-emu: Update sNaN quieting handlersarch/mips/math-emu/ieee754dp.c arch/mips/math-emu/ieee754sp.c+6 -160 replies
22/48MIPS: math-emu: Factor out NaN FP format conversionsarch/mips/math-emu/dp_fsp.c arch/mips/math-emu/sp_fdp.c+15 -70 replies
23/48MIPS: math-emu: Don't pass qNaNs through quieting handlersarch/mips/math-emu/dp_fsp.c arch/mips/math-emu/dp_sqrt.c arch/mips/math-emu/sp_fdp.c +1 more+8 -80 replies
24/48MIPS: math-emu: Reinstate sNaN quieting handlersarch/mips/math-emu/dp_add.c arch/mips/math-emu/dp_div.c arch/mips/math-emu/dp_fsp.c +11 more+62 -620 replies
25/48MIPS: math-emu: Optimise NaN handling in comparisonsarch/mips/math-emu/dp_cmp.c arch/mips/math-emu/ieee754dp.c arch/mips/math-emu/ieee754int.h +2 more+9 -40 replies
26/48MIPS: math-emu: Remove redundant code from NaN comparisonarch/mips/math-emu/dp_cmp.c arch/mips/math-emu/sp_cmp.c+2 -140 replies
27/48MIPS: math-emu: Remove dead comparison helpersarch/mips/math-emu/ieee754.h+0 -650 replies
28/48MIPS: math-emu: Optimise qNaN handling in `ieee754sp_fdp'arch/mips/math-emu/sp_fdp.c+7 -50 replies
29/48MIPS: math-emu: Make NaN classifiers staticarch/mips/math-emu/ieee754dp.c arch/mips/math-emu/ieee754dp.h arch/mips/math-emu/ieee754sp.c +1 more+2 -41 reply
30/48MIPS: Correct `nofpu' non-functionalityarch/mips/include/asm/cpu-features.h arch/mips/include/asm/mach-cobalt/cpu-feature-overrides.h arch/mips/include/asm/mach-dec/cpu-feature-overrides.h +4 more+1 -60 replies
31/48MIPS: Correct MIPS16 BREAK code interpretationarch/mips/kernel/traps.c+1 -10 replies
32/48MIPS: BREAK instruction interpretation correctionsarch/mips/kernel/traps.c+18 -180 replies
33/48MIPS: Fix BREAK code interpretation heuristicsarch/mips/kernel/traps.c+1 -10 replies
34/48MIPS: math-emu: Fix delay-slot emulation cache incoherencyarch/mips/math-emu/dsemul.c+1 -10 replies
35/48MIPS: Correct MIPS I FP context layoutarch/mips/include/asm/asmmacro-32.h+32 -640 replies
36/48MIPS: Correct FP ISA requirementsarch/mips/include/asm/cpu-features.h arch/mips/kernel/traps.c arch/mips/math-emu/cp1emu.c+43 -420 replies
37/48MIPS: math-emu: Correct delay-slot exception propagationarch/mips/math-emu/cp1emu.c arch/mips/math-emu/dsemul.c+30 -62 replies
38/48MIPS: math-emu: Move long fixed-point support into an `ar' libraryarch/mips/math-emu/Makefile+9 -60 replies
39/48MIPS: Respect the FCSR exception mask for `si_code'arch/mips/kernel/traps.c+10 -10 replies
40/48MIPS: Always clear FCSR cause bits after emulationarch/mips/kernel/mips-r2-to-r6-emul.c arch/mips/kernel/traps.c+20 -10 replies
41/48MIPS: Set `si_code' for SIGFPE signals sent from emulation tooarch/mips/include/asm/fpu_emulator.h arch/mips/include/asm/mips-r2-to-r6-emul.h arch/mips/kernel/mips-r2-to-r6-emul.c +2 more+97 -730 replies
42/48MIPS: Correct ISA masking in FPU feature determinationarch/mips/kernel/cpu-probe.c+3 -10 replies
43/48MIPS: math-emu: Set FIR feature flags for full emulationarch/mips/kernel/cpu-probe.c arch/mips/math-emu/cp1emu.c+25 -31 reply
44/48MIPS: math-emu: Implement the FCCR, FEXR and FENR registersarch/mips/include/asm/mipsregs.h arch/mips/math-emu/cp1emu.c+148 -270 replies
45/48MIPS: math-emu: Define IEEE 754-2008 feature control bitsarch/mips/include/asm/mipsregs.h arch/mips/math-emu/cp1emu.c arch/mips/math-emu/ieee754.h+17 -90 replies
46/48MIPS: math-emu: Make ABS.fmt and NEG.fmt arithmetic againarch/mips/math-emu/dp_simple.c arch/mips/math-emu/sp_simple.c+34 -683 replies
47/48MIPS: Respect the ISA level in FCSR handlingarch/mips/include/asm/cpu-info.h arch/mips/include/asm/elf.h arch/mips/include/asm/fpu.h +7 more+84 -213 replies
48/48MIPS: Factor out FPU feature probingarch/mips/kernel/cpu-probe.c+71 -540 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/48] FPU and FP emulation clean-ups, fixes and feature updates

Hi,

These are fixes to address code structuring and coding style problems
and then bug fixes I discovered in the course of implementing an upcoming FPU feature. There are some minor feature updates too. They are related to one another to a various extent, sometimes very loosely, but I decided to keep them as a series because there is a lot of syntactical overlap, as changes are made in steps, one issue at a time. Keeping them in order guarantees that they apply on top of one another.

Clean-ups come first as they should be completely uncontroversial,
followed by restructuring, bug fixes and new features.

Maciej