MIPS: traps.c: Correct microMIPS RDHWR emulation
authorMaciej W. Rozycki <macro@imgtec.com>
Sat, 30 Jan 2016 09:08:28 +0000 (09:08 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 2 Feb 2016 01:16:29 +0000 (02:16 +0100)
commit7aa7047100113ec9f5e4e685f94223825bd74a7b
tree6bea043bb48433dd7867fba6856ca0611ca24c7a
parent10f6d99f0fb186bbca1e9e2905d0d3693f941396
MIPS: traps.c: Correct microMIPS RDHWR emulation

Fix the code to fetch and decode the whole 32-bit instruction.  This
only really matters with the `noulri' kernel parameter as all microMIPS
processors are supposed to have all the hardware registers we support.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12281/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c