From a6a4834cdbef23a7db16e7598c8c6e427ac82531 Mon Sep 17 00:00:00 2001 From: "Steven J. Hill" Date: Tue, 5 Feb 2013 16:52:02 -0600 Subject: 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 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 (cherry picked from commit 5f011a866afbd03a5379f67f4e70e5efbdfc16e9) --- arch/mips/include/asm/uasm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/mips/include/asm/uasm.h') 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 -- cgit v1.2.3