MIPS: microMIPS: Add instruction utility macros.
authorSteven J. Hill <[email protected]>
Tue, 5 Feb 2013 22:52:03 +0000 (16:52 -0600)
committerSteven J. Hill <[email protected]>
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.

[[email protected]: Removed unnecessary parenthesis as noted by
Sergei Shtylyov <[email protected]>]

Signed-off-by: Steven J. Hill <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Sergei Shtylyov <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/4924/
Signed-off-by: Ralf Baechle <[email protected]>
(cherry picked from commit 49df26472338b935fd5781bf94a77a88b148a716)
arch/mips/include/asm/mipsregs.h