28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: memory.h,v 1.35 2005/07/19 10:48:07 debug Exp $ |
* $Id: memory.h,v 1.37 2005/09/22 09:07:00 debug Exp $ |
32 |
* |
* |
33 |
* Memory controller related functions. |
* Memory controller related functions. |
34 |
*/ |
*/ |
126 |
#define NO_EXCEPTIONS 16 |
#define NO_EXCEPTIONS 16 |
127 |
#define PHYSICAL 32 |
#define PHYSICAL 32 |
128 |
#define NO_SEGMENTATION 64 /* for X86 */ |
#define NO_SEGMENTATION 64 /* for X86 */ |
129 |
|
#define MEMORY_USER_ACCESS 128 /* for ARM, at least */ |
130 |
|
|
131 |
|
|
132 |
/* memory.c: */ |
/* memory.c: */ |
162 |
int translate_address_generic(struct cpu *cpu, uint64_t vaddr, |
int translate_address_generic(struct cpu *cpu, uint64_t vaddr, |
163 |
uint64_t *return_addr, int flags); |
uint64_t *return_addr, int flags); |
164 |
|
|
|
/* X86 stuff: */ |
|
|
int translate_address_x86(struct cpu *cpu, uint64_t vaddr, |
|
|
uint64_t *return_addr, int flags); |
|
|
|
|
165 |
|
|
166 |
#define FLAG_WRITEFLAG 1 |
#define FLAG_WRITEFLAG 1 |
167 |
#define FLAG_NOEXCEPTIONS 2 |
#define FLAG_NOEXCEPTIONS 2 |