summaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorSteven J. Hill <sjhill@mips.com>2013-02-05 16:52:02 -0600
committerSteven J. Hill <Steven.Hill@imgtec.com>2013-05-01 16:32:46 -0500
commita6a4834cdbef23a7db16e7598c8c6e427ac82531 (patch)
tree9a2a89d17ef06eb672dc03bddce61f3aea889558 /arch/mips/include
parentabc597fe623cfd7d3b18d5235c54f3d567d2c3d3 (diff)
downloadop-kernel-dev-a6a4834cdbef23a7db16e7598c8c6e427ac82531.zip
op-kernel-dev-a6a4834cdbef23a7db16e7598c8c6e427ac82531.tar.gz
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')
-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 f7d8f15..f924b87 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
OpenPOWER on IntegriCloud