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.9 2006/02/05 10:26:36 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 */ |