2 |
#define MEMORY_H |
#define MEMORY_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2004-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2004-2007 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: memory.h,v 1.52 2006/09/01 15:42:59 debug Exp $ |
* $Id: memory.h,v 1.55 2007/02/10 14:04:51 debug Exp $ |
32 |
* |
* |
33 |
* Memory related functions. |
* Memory related functions. |
34 |
*/ |
*/ |
126 |
#define CACHE_FLAGS_MASK 0x3 |
#define CACHE_FLAGS_MASK 0x3 |
127 |
#define NO_EXCEPTIONS 16 |
#define NO_EXCEPTIONS 16 |
128 |
#define PHYSICAL 32 |
#define PHYSICAL 32 |
129 |
#define NO_SEGMENTATION 64 /* for X86 */ |
#define MEMORY_USER_ACCESS 64 /* for ARM, at least */ |
|
#define MEMORY_USER_ACCESS 128 /* for ARM, at least */ |
|
130 |
|
|
131 |
/* Dyntrans Memory flags: */ |
/* Dyntrans Memory flags: */ |
132 |
#define DM_DEFAULT 0 |
#define DM_DEFAULT 0 |
164 |
|
|
165 |
uint64_t memory_checksum(struct memory *mem); |
uint64_t memory_checksum(struct memory *mem); |
166 |
|
|
167 |
|
void memory_warn_about_unimplemented_addr(struct cpu *cpu, struct memory *mem, |
168 |
|
int writeflag, uint64_t paddr, uint8_t *data, size_t len); |
169 |
|
|
170 |
|
|
171 |
#endif /* MEMORY_H */ |
#endif /* MEMORY_H */ |