| 24 |
|
|
| 25 |
#include "cpu-defs.h" |
#include "cpu-defs.h" |
| 26 |
|
|
| 27 |
#define EXCP_UDEF 1 /* undefined instruction */ |
#define EXCP_UDEF 1 /* undefined instruction */ |
| 28 |
#define EXCP_SWI 2 /* software interrupt */ |
#define EXCP_SWI 2 /* software interrupt */ |
| 29 |
|
#define EXCP_PREFETCH_ABORT 3 |
| 30 |
|
#define EXCP_DATA_ABORT 4 |
| 31 |
|
|
| 32 |
typedef struct CPUARMState { |
typedef struct CPUARMState { |
| 33 |
uint32_t regs[16]; |
uint32_t regs[16]; |
| 41 |
|
|
| 42 |
int thumb; /* 0 = arm mode, 1 = thumb mode */ |
int thumb; /* 0 = arm mode, 1 = thumb mode */ |
| 43 |
|
|
| 44 |
|
/* coprocessor 15 (MMU) status */ |
| 45 |
|
uint32_t cp15_6; |
| 46 |
|
|
| 47 |
/* exception/interrupt handling */ |
/* exception/interrupt handling */ |
| 48 |
jmp_buf jmp_env; |
jmp_buf jmp_env; |
| 49 |
int exception_index; |
int exception_index; |