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.12 2006/10/02 08:03:16 debug Exp $ |
32 |
* |
* |
33 |
* Misc. definitions for coprocessor 0. |
* Misc. definitions for coprocessor 0. |
34 |
*/ |
*/ |
95 |
#define COP0_ENTRYHI 10 |
#define COP0_ENTRYHI 10 |
96 |
/* R4000 ENTRYHI: */ |
/* R4000 ENTRYHI: */ |
97 |
#define ENTRYHI_R_MASK 0xc000000000000000ULL |
#define ENTRYHI_R_MASK 0xc000000000000000ULL |
98 |
|
#define ENTRYHI_R_XKPHYS 0x8000000000000000ULL |
99 |
#define ENTRYHI_R_SHIFT 62 |
#define ENTRYHI_R_SHIFT 62 |
100 |
#define ENTRYHI_VPN2_MASK_R10K 0x00000fffffffe000ULL |
#define ENTRYHI_VPN2_MASK_R10K 0x00000fffffffe000ULL |
101 |
#define ENTRYHI_VPN2_MASK 0x000000ffffffe000ULL |
#define ENTRYHI_VPN2_MASK 0x000000ffffffe000ULL |
126 |
#define STATUS_ERL 0x04 |
#define STATUS_ERL 0x04 |
127 |
#define STATUS_EXL 0x02 |
#define STATUS_EXL 0x02 |
128 |
#define STATUS_IE 0x01 |
#define STATUS_IE 0x01 |
129 |
#define R5900_STATUS_EIE 0x10000 |
#define R5900_STATUS_EDI 0x20000 /* EI/DI instruction enable */ |
130 |
|
#define R5900_STATUS_EIE 0x10000 /* Enable Interrupt Enable */ |
131 |
#define COP0_CAUSE 13 |
#define COP0_CAUSE 13 |
132 |
#define CAUSE_BD 0x80000000UL /* branch delay flag */ |
#define CAUSE_BD 0x80000000UL /* branch delay flag */ |
133 |
#define CAUSE_CE_MASK 0x30000000 /* which coprocessor */ |
#define CAUSE_CE_MASK 0x30000000 /* which coprocessor */ |
198 |
#define EXCEPTION_TR 13 /* Trap exception */ |
#define EXCEPTION_TR 13 /* Trap exception */ |
199 |
#define EXCEPTION_VCEI 14 /* Virtual Coherency Exception, Instruction */ |
#define EXCEPTION_VCEI 14 /* Virtual Coherency Exception, Instruction */ |
200 |
#define EXCEPTION_FPE 15 /* Floating point exception */ |
#define EXCEPTION_FPE 15 /* Floating point exception */ |
201 |
/* 16..17: Available for "implementation dependant use" */ |
/* 16..17: Available for "implementation dependent use" */ |
202 |
#define EXCEPTION_C2E 18 /* MIPS64 C2E (precise coprocessor 2 exception) */ |
#define EXCEPTION_C2E 18 /* MIPS64 C2E (precise coprocessor 2 exception) */ |
203 |
/* 19..21: Reserved */ |
/* 19..21: Reserved */ |
204 |
#define EXCEPTION_MDMX 22 /* MIPS64 MDMX unusable */ |
#define EXCEPTION_MDMX 22 /* MIPS64 MDMX unusable */ |