Skip to content

Commit e70ac02

Browse files
paulburtonralfbaechle
authored andcommitted
MIPS: Allow emulation for unaligned [LS]DXC1 instructions
If an address error exception occurs for a LDXC1 or SDXC1 instruction, within the cop1x opcode space, allow it to be passed through to the FPU emulator rather than resulting in a SIGILL. This causes LDXC1 & SDXC1 to be handled in a manner consistent with the more common LDC1 & SDC1 instructions. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Tested-by: Aurelien Jarno <aurelien@aurel32.net> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/13143/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent abf378b commit e70ac02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/mips/kernel/unaligned.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,7 @@ static void emulate_load_store_insn(struct pt_regs *regs,
11911191
case ldc1_op:
11921192
case swc1_op:
11931193
case sdc1_op:
1194+
case cop1x_op:
11941195
die_if_kernel("Unaligned FP access in kernel code", regs);
11951196
BUG_ON(!used_math());
11961197

0 commit comments

Comments
 (0)