diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-28 19:49:24 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-23 09:12:37 -0400 |
commit | 377cb1b6c16a17e2560a9288f9c8ed5dcdbeba39 (patch) | |
tree | 90d60a8ccc380a330ebceb21dfcc0abbeb4b0a39 /arch/mips/include/asm/mipsregs.h | |
parent | e0cc3a42eb50593a50e2b99d9dc92b4279f2efda (diff) |
MIPS: Disable MIPS16/microMIPS crap for platforms not supporting these ASEs.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mipsregs.h')
-rw-r--r-- | arch/mips/include/asm/mipsregs.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index 3e025b5311db..88e30d5022b3 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h | |||
@@ -709,11 +709,18 @@ | |||
709 | #ifndef __ASSEMBLY__ | 709 | #ifndef __ASSEMBLY__ |
710 | 710 | ||
711 | /* | 711 | /* |
712 | * Macros for handling the ISA mode bit for microMIPS. | 712 | * Macros for handling the ISA mode bit for MIPS16 and microMIPS. |
713 | */ | 713 | */ |
714 | #if defined(CONFIG_SYS_SUPPORTS_MIPS16) || \ | ||
715 | defined(CONFIG_SYS_SUPPORTS_MICROMIPS) | ||
714 | #define get_isa16_mode(x) ((x) & 0x1) | 716 | #define get_isa16_mode(x) ((x) & 0x1) |
715 | #define msk_isa16_mode(x) ((x) & ~0x1) | 717 | #define msk_isa16_mode(x) ((x) & ~0x1) |
716 | #define set_isa16_mode(x) do { (x) |= 0x1; } while(0) | 718 | #define set_isa16_mode(x) do { (x) |= 0x1; } while(0) |
719 | #else | ||
720 | #define get_isa16_mode(x) 0 | ||
721 | #define msk_isa16_mode(x) (x) | ||
722 | #define set_isa16_mode(x) do { } while(0) | ||
723 | #endif | ||
717 | 724 | ||
718 | /* | 725 | /* |
719 | * microMIPS instructions can be 16-bit or 32-bit in length. This | 726 | * microMIPS instructions can be 16-bit or 32-bit in length. This |