28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: cop0.h,v 1.6 2005/01/18 06:22:58 debug Exp $ |
* $Id: cop0.h,v 1.9 2006/02/05 10:26:36 debug Exp $ |
32 |
* |
* |
33 |
* Misc. definitions for coprocessor 0. |
* Misc. definitions for coprocessor 0. |
34 |
*/ |
*/ |
35 |
|
|
36 |
|
|
37 |
/* TODO: Coproc registers are actually CPU dependant, so an R4000 |
/* TODO: Coproc registers are actually CPU dependent, so an R4000 |
38 |
has other bits/registers than an R3000... |
has other bits/registers than an R3000... |
39 |
TODO 2: CPUs like the R10000 are probably even a bit more different. */ |
TODO 2: CPUs like the R10000 are probably even a bit more different. */ |
40 |
|
|
85 |
#define COP0_PAGEMASK 5 |
#define COP0_PAGEMASK 5 |
86 |
#define PAGEMASK_MASK 0x01ffe000 |
#define PAGEMASK_MASK 0x01ffe000 |
87 |
#define PAGEMASK_SHIFT 13 |
#define PAGEMASK_SHIFT 13 |
88 |
#define PAGEMASK_MASK_R4100 0x0007f800 /* TODO: At least VR4131, how about others? */ |
#define PAGEMASK_MASK_R4100 0x0007f800 /* TODO: At least VR4131, */ |
89 |
|
/* how about others? */ |
90 |
#define PAGEMASK_SHIFT_R4100 11 |
#define PAGEMASK_SHIFT_R4100 11 |
91 |
#define COP0_WIRED 6 |
#define COP0_WIRED 6 |
92 |
#define COP0_RESERV7 7 |
#define COP0_RESERV7 7 |
196 |
#define EXCEPTION_TR 13 /* Trap exception */ |
#define EXCEPTION_TR 13 /* Trap exception */ |
197 |
#define EXCEPTION_VCEI 14 /* Virtual Coherency Exception, Instruction */ |
#define EXCEPTION_VCEI 14 /* Virtual Coherency Exception, Instruction */ |
198 |
#define EXCEPTION_FPE 15 /* Floating point exception */ |
#define EXCEPTION_FPE 15 /* Floating point exception */ |
199 |
/* 16..17: Available for "implementation dependant use" */ |
/* 16..17: Available for "implementation dependent use" */ |
200 |
#define EXCEPTION_C2E 18 /* MIPS64 C2E (precise coprocessor 2 exception) */ |
#define EXCEPTION_C2E 18 /* MIPS64 C2E (precise coprocessor 2 exception) */ |
201 |
/* 19..21: Reserved */ |
/* 19..21: Reserved */ |
202 |
#define EXCEPTION_MDMX 22 /* MIPS64 MDMX unusable */ |
#define EXCEPTION_MDMX 22 /* MIPS64 MDMX unusable */ |