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)
This commit is contained in:
Steven J. Hill 2013-02-05 16:52:02 -06:00 committed by Steven J. Hill
parent abc597fe62
commit a6a4834cdb
4 changed files with 230 additions and 0 deletions

View file

@ -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