linux/arch/mips/math-emu
Leonid Yegoshin b0a668fb20 MIPS: kernel: mips-r2-to-r6-emul: Add R2 emulator for MIPS R6
MIPS R6 removed quite a few R2 instructions. However, there
is plenty of <R6 userland code so we add an in-kernel emulator
so we can still be able to execute all R2 userland out there.

The emulator comes with a handy debugfs under /mips/ directory
(r2-emul-stats) to provide some basic statistics of the
instructions that are being emulated.

Below are some statistics from booting a minimal buildroot image:

Instruction     Total   BDslot
------------------------------
movs            236969  0
hilo            56686   0
muls            55279   0
divs            10941   0
dsps            0       0
bops            1       0
traps           0       0
fpus            0       0
loads           214981  17
stores          103364  0
llsc            56898   0
dsemul          150418  0
jr              370158
bltzl           43
bgezl           1594
bltzll          0
bgezll          0
bltzal          39
bgezal          39
beql            14503
bnel            138741
blezl           0
bgtzl           3988

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
2015-02-17 15:37:37 +00:00
..
cp1emu.c MIPS: kernel: mips-r2-to-r6-emul: Add R2 emulator for MIPS R6 2015-02-17 15:37:37 +00:00
dp_add.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
dp_cmp.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
dp_div.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
dp_fint.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
dp_flong.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
dp_fsp.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
dp_mul.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
dp_simple.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
dp_sqrt.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
dp_sub.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
dp_tint.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
dp_tlong.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
dsemul.c MIPS: math-emu: Convert debug printks to pr_debug getting. 2014-05-23 15:11:04 +02:00
ieee754.c MIPS: math-emu: Reduce code duplication. 2014-06-26 10:47:55 +01:00
ieee754.h MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
ieee754d.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
ieee754dp.c MIPS: Remove useless parentheses 2014-11-24 07:44:49 +01:00
ieee754dp.h MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
ieee754int.h MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
ieee754sp.c MIPS: Remove useless parentheses 2014-11-24 07:44:49 +01:00
ieee754sp.h MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
Makefile MIPS: math-emu: Inline fpu_emulator_init_fpu() 2014-05-23 15:12:37 +02:00
me-debugfs.c MIPS: math-emu: Add IEEE754 exception statistics to debugfs 2014-05-30 11:55:23 +02:00
sp_add.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
sp_cmp.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
sp_div.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
sp_fdp.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
sp_fint.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
sp_flong.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
sp_mul.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
sp_simple.c MIPS: math-emu: Cleanup coding style. 2014-05-23 15:11:15 +02:00
sp_sqrt.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
sp_sub.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
sp_tint.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00
sp_tlong.c MIPS: math-emu: Switch to using the MIPS rounding modes. 2014-05-23 15:12:38 +02:00