Revision 3bad9814
b/cpu-common.h | ||
---|---|---|
68 | 68 |
void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf, |
69 | 69 |
int len, int is_write); |
70 | 70 |
static inline void cpu_physical_memory_read(target_phys_addr_t addr, |
71 |
uint8_t *buf, int len)
|
|
71 |
void *buf, int len)
|
|
72 | 72 |
{ |
73 | 73 |
cpu_physical_memory_rw(addr, buf, len, 0); |
74 | 74 |
} |
75 | 75 |
static inline void cpu_physical_memory_write(target_phys_addr_t addr, |
76 |
const uint8_t *buf, int len)
|
|
76 |
const void *buf, int len)
|
|
77 | 77 |
{ |
78 |
cpu_physical_memory_rw(addr, (uint8_t *)buf, len, 1);
|
|
78 |
cpu_physical_memory_rw(addr, (void *)buf, len, 1);
|
|
79 | 79 |
} |
80 | 80 |
void *cpu_physical_memory_map(target_phys_addr_t addr, |
81 | 81 |
target_phys_addr_t *plen, |
Also available in: Unified diff