summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/uasm.h
diff options
context:
space:
mode:
authorSteven J. Hill <sjhill@mips.com>2013-02-06 02:52:02 +0400
committerSteven J. Hill <Steven.Hill@imgtec.com>2013-05-02 01:32:46 +0400
commita6a4834cdbef23a7db16e7598c8c6e427ac82531 (patch)
tree9a2a89d17ef06eb672dc03bddce61f3aea889558 /arch/mips/include/asm/uasm.h
parentabc597fe623cfd7d3b18d5235c54f3d567d2c3d3 (diff)
downloadlinux-a6a4834cdbef23a7db16e7598c8c6e427ac82531.tar.xz
MIPS: microMIPS: uasm: Add microMIPS micro assembler support.
Add new file 'uasm-micromips.c' that allows the micro assembler to generate microMIPS ISA code. It can be included in the kernel alongside the classic ISA as long as the platform supports the microMIPS ISA. 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 Patchwork: https://patchwork.linux-mips.org/patch/4923/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> (cherry picked from commit 5f011a866afbd03a5379f67f4e70e5efbdfc16e9)
Diffstat (limited to 'arch/mips/include/asm/uasm.h')
-rw-r--r--arch/mips/include/asm/uasm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/include/asm/uasm.h b/arch/mips/include/asm/uasm.h
index f7d8f1509c4d..f924b87b5308 100644
--- a/arch/mips/include/asm/uasm.h
+++ b/arch/mips/include/asm/uasm.h
@@ -23,6 +23,7 @@
#endif
#define _UASM_ISA_CLASSIC 0
+#define _UASM_ISA_MICROMIPS 1
#ifndef UASM_ISA
#define UASM_ISA _UASM_ISA_CLASSIC
@@ -31,6 +32,9 @@
#if (UASM_ISA == _UASM_ISA_CLASSIC)
#define ISAOPC(op) uasm_i##op
#define ISAFUNC(x) x
+#elif (UASM_ISA == _UASM_ISA_MICROMIPS)
+#define ISAOPC(op) MM_uasm_i##op
+#define ISAFUNC(x) MM_##x
#else
#error Unsupported micro-assembler ISA!!!
#endif