2 |
#define COP0_H |
#define COP0_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2003-2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
6 |
* |
* |
7 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
8 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cop0.h,v 1.8 2005/10/26 14:37:06 debug Exp $ |
* $Id: cop0.h,v 1.11 2006/05/10 20:04:59 debug Exp $ |
32 |
* |
* |
33 |
* Misc. definitions for coprocessor 0. |
* Misc. definitions for coprocessor 0. |
34 |
*/ |
*/ |
125 |
#define STATUS_ERL 0x04 |
#define STATUS_ERL 0x04 |
126 |
#define STATUS_EXL 0x02 |
#define STATUS_EXL 0x02 |
127 |
#define STATUS_IE 0x01 |
#define STATUS_IE 0x01 |
128 |
#define R5900_STATUS_EIE 0x10000 |
#define R5900_STATUS_EDI 0x20000 /* EI/DI instruction enable */ |
129 |
|
#define R5900_STATUS_EIE 0x10000 /* Enable Interrupt Enable */ |
130 |
#define COP0_CAUSE 13 |
#define COP0_CAUSE 13 |
131 |
#define CAUSE_BD 0x80000000UL /* branch delay flag */ |
#define CAUSE_BD 0x80000000UL /* branch delay flag */ |
132 |
#define CAUSE_CE_MASK 0x30000000 /* which coprocessor */ |
#define CAUSE_CE_MASK 0x30000000 /* which coprocessor */ |
197 |
#define EXCEPTION_TR 13 /* Trap exception */ |
#define EXCEPTION_TR 13 /* Trap exception */ |
198 |
#define EXCEPTION_VCEI 14 /* Virtual Coherency Exception, Instruction */ |
#define EXCEPTION_VCEI 14 /* Virtual Coherency Exception, Instruction */ |
199 |
#define EXCEPTION_FPE 15 /* Floating point exception */ |
#define EXCEPTION_FPE 15 /* Floating point exception */ |
200 |
/* 16..17: Available for "implementation dependant use" */ |
/* 16..17: Available for "implementation dependent use" */ |
201 |
#define EXCEPTION_C2E 18 /* MIPS64 C2E (precise coprocessor 2 exception) */ |
#define EXCEPTION_C2E 18 /* MIPS64 C2E (precise coprocessor 2 exception) */ |
202 |
/* 19..21: Reserved */ |
/* 19..21: Reserved */ |
203 |
#define EXCEPTION_MDMX 22 /* MIPS64 MDMX unusable */ |
#define EXCEPTION_MDMX 22 /* MIPS64 MDMX unusable */ |