diff options
author | James Hogan <james.hogan@imgtec.com> | 2015-12-16 18:49:34 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-01-23 21:20:46 -0500 |
commit | 044c9bb816433c196a5776ac4834c23eced205e7 (patch) | |
tree | 5a9f5f12a807cfbe049c5ce9422b38eb362ba4d5 | |
parent | 16d100db245ab34d975e080f39e4cc4ed09b3820 (diff) |
MIPS: Update trap codes
Add a few missing trap codes.
[ralf@linux-mips.org: Drop removal of exception codes. I don't care what
the incomplete architecture spec says; it can't change existing hardware
and VCEI is supported indeed.]
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11890/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/include/asm/mipsregs.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index eb89b877c6c9..3ad19ad04d8a 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h | |||
@@ -420,12 +420,20 @@ | |||
420 | #define EXCCODE_CPU 11 /* Coprocessor unusable */ | 420 | #define EXCCODE_CPU 11 /* Coprocessor unusable */ |
421 | #define EXCCODE_OV 12 /* Arithmetic overflow */ | 421 | #define EXCCODE_OV 12 /* Arithmetic overflow */ |
422 | #define EXCCODE_TR 13 /* Trap instruction */ | 422 | #define EXCCODE_TR 13 /* Trap instruction */ |
423 | #define EXCCODE_VCEI 14 /* Virtual coherency exception */ | ||
424 | #define EXCCODE_MSAFPE 14 /* MSA floating point exception */ | 423 | #define EXCCODE_MSAFPE 14 /* MSA floating point exception */ |
425 | #define EXCCODE_FPE 15 /* Floating point exception */ | 424 | #define EXCCODE_FPE 15 /* Floating point exception */ |
425 | #define EXCCODE_TLBRI 19 /* TLB Read-Inhibit exception */ | ||
426 | #define EXCCODE_TLBXI 20 /* TLB Execution-Inhibit exception */ | ||
426 | #define EXCCODE_MSADIS 21 /* MSA disabled exception */ | 427 | #define EXCCODE_MSADIS 21 /* MSA disabled exception */ |
428 | #define EXCCODE_MDMX 22 /* MDMX unusable exception */ | ||
427 | #define EXCCODE_WATCH 23 /* Watch address reference */ | 429 | #define EXCCODE_WATCH 23 /* Watch address reference */ |
428 | #define EXCCODE_VCED 31 /* Virtual coherency data */ | 430 | #define EXCCODE_MCHECK 24 /* Machine check */ |
431 | #define EXCCODE_THREAD 25 /* Thread exceptions (MT) */ | ||
432 | #define EXCCODE_DSPDIS 26 /* DSP disabled exception */ | ||
433 | #define EXCCODE_GE 27 /* Virtualized guest exception (VZ) */ | ||
434 | |||
435 | /* Implementation specific trap codes used by MIPS cores */ | ||
436 | #define MIPS_EXCCODE_TLBPAR 16 /* TLB parity error exception */ | ||
429 | 437 | ||
430 | /* | 438 | /* |
431 | * Bits in the coprocessor 0 config register. | 439 | * Bits in the coprocessor 0 config register. |