]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: microMIPS: Add instruction utility macros.
authorSteven J. Hill <sjhill@mips.com>
Tue, 5 Feb 2013 22:52:03 +0000 (16:52 -0600)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 13 Mar 2013 20:17:08 +0000 (21:17 +0100)
commit49df26472338b935fd5781bf94a77a88b148a716
tree206159e15d2ad881ec02ec832fcc3eaebaf06e37
parent5f011a866afbd03a5379f67f4e70e5efbdfc16e9
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>
arch/mips/include/asm/mipsregs.h