]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: math-emu: Correct the emulation of microMIPS ADDIUPC instruction
authorMaciej W. Rozycki <macro@imgtec.com>
Fri, 22 Jan 2016 05:21:00 +0000 (05:21 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 24 Jan 2016 00:36:10 +0000 (01:36 +0100)
commit20f96cbac176f3359fc264da8f34e90dca799fe9
tree5cfd41a53625d104620bb267345d0ecac2798f8a
parent09924b05ece184a4d40e44df98a92af286b8fb1e
MIPS: math-emu: Correct the emulation of microMIPS ADDIUPC instruction

Emulate the microMIPS ADDIUPC instruction directly in `mips_dsemul'.  If
executed in the emulation frame, this instruction produces an incorrect
result, because the value of the PC there is not the same as where the
instruction originated.

Reshape code so as to handle all microMIPS cases together.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12175/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/uapi/asm/inst.h
arch/mips/math-emu/dsemul.c