MIPS: traps.c: Verify the ISA for microMIPS RDHWR emulation
authorMaciej W. Rozycki <macro@imgtec.com>
Sat, 30 Jan 2016 09:08:43 +0000 (09:08 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 4 Apr 2016 13:25:34 +0000 (15:25 +0200)
commit3d50a7fb42992545e45e10b068406546ea699489
tree377a54dd0c80f3f287e4463d3ea9577866384cfa
parent6870e707c6d934329872eadc77a7d2d07586e36c
MIPS: traps.c: Verify the ISA for microMIPS RDHWR emulation

Make sure it's the microMIPS rather than MIPS16 ISA before emulating
microMIPS RDHWR.  Mostly needed as an optimisation for configurations
where `cpu_has_mmips' is hardcoded to 0 and also a good measure in case
we add further microMIPS instructions to emulate in the future, as the
corresponding MIPS16 encoding is ADDIUSP, not supposed to trap.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12282/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c
This page took 0.024063 seconds and 5 git commands to generate.