MIPS: Add new option for unique RI/XI exceptions
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Tue, 15 Jul 2014 13:09:55 +0000 (14:09 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:39 +0000 (00:06 +0200)
MIPSr5 added support for unique exception codes for the Read-Inhibit
and Execute-Inhibit exceptions.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7338/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-features.h
arch/mips/include/asm/cpu.h

index 3b9768e92e9e6476c7e958e373cd1bc2cb14caa2..eeb5400ed4ee75d0297a73991e1a9f2948d0e474 100644 (file)
@@ -32,6 +32,9 @@
 #ifndef cpu_has_htw
 #define cpu_has_htw            (cpu_data[0].options & MIPS_CPU_HTW)
 #endif
+#ifndef cpu_has_rixiex
+#define cpu_has_rixiex         (cpu_data[0].options & MIPS_CPU_RIXIEX)
+#endif
 
 /*
  * For the moment we don't consider R6000 and R8000 so we can assume that
index ec6a0f964d6a23c5235183fe4a9c47889c672534..7ba2a035ad866416f147819700e7f145f015e0f0 100644 (file)
@@ -366,6 +366,7 @@ enum cpu_type_enum {
 #define MIPS_CPU_SEGMENTS      0x04000000ull /* CPU supports Segmentation Control registers */
 #define MIPS_CPU_EVA           0x80000000ull /* CPU supports Enhanced Virtual Addressing */
 #define MIPS_CPU_HTW           0x100000000ull /* CPU support Hardware Page Table Walker */
+#define MIPS_CPU_RIXIEX                0x200000000ull /* CPU has unique exception codes for {Read, Execute}-Inhibit exceptions */
 
 /*
  * CPU ASE encodings