MIPS: microMIPS: Add instruction utility macros.
authorSteven J. Hill <sjhill@mips.com>
Tue, 5 Feb 2013 22:52:03 +0000 (16:52 -0600)
committerSteven J. Hill <Steven.Hill@imgtec.com>
Wed, 1 May 2013 21:32:47 +0000 (16:32 -0500)
commitbfd08baae4591eca753afe3c9c63c583c4d4c78a
tree28719c486310951c63939017b837b65689160840
parenta6a4834cdbef23a7db16e7598c8c6e427ac82531
MIPS: microMIPS: Add instruction utility macros.

Add two new macros for microMIPS. One checks if an exception was
taken in either microMIPS or classic MIPS mode. The other checks
if a microMIPS instruction is 16-bit or 32-bit in length.

[ralf@linux-mips.org: Removed unnecessary parenthesis as noted by
Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>]

Signed-off-by: Steven J. Hill <sjhill@mips.com>
Cc: linux-mips@linux-mips.org
Cc: cernekee@gmail.com
Cc: kevink@paralogos.com
Cc: ddaney.cavm@gmail.com
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Patchwork: https://patchwork.linux-mips.org/patch/4924/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
(cherry picked from commit 49df26472338b935fd5781bf94a77a88b148a716)
arch/mips/include/asm/mipsregs.h