Revision c227f099 hw/mpcore.c
b/hw/mpcore.c | ||
---|---|---|
155 | 155 |
|
156 | 156 |
/* Per-CPU private memory mapped IO. */ |
157 | 157 |
|
158 |
static uint32_t mpcore_priv_read(void *opaque, a_target_phys_addr offset)
|
|
158 |
static uint32_t mpcore_priv_read(void *opaque, target_phys_addr_t offset)
|
|
159 | 159 |
{ |
160 | 160 |
mpcore_priv_state *s = (mpcore_priv_state *)opaque; |
161 | 161 |
int id; |
... | ... | |
199 | 199 |
return 0; |
200 | 200 |
} |
201 | 201 |
|
202 |
static void mpcore_priv_write(void *opaque, a_target_phys_addr offset,
|
|
202 |
static void mpcore_priv_write(void *opaque, target_phys_addr_t offset,
|
|
203 | 203 |
uint32_t value) |
204 | 204 |
{ |
205 | 205 |
mpcore_priv_state *s = (mpcore_priv_state *)opaque; |
... | ... | |
255 | 255 |
mpcore_priv_write |
256 | 256 |
}; |
257 | 257 |
|
258 |
static void mpcore_priv_map(SysBusDevice *dev, a_target_phys_addr base)
|
|
258 |
static void mpcore_priv_map(SysBusDevice *dev, target_phys_addr_t base)
|
|
259 | 259 |
{ |
260 | 260 |
mpcore_priv_state *s = FROM_SYSBUSGIC(mpcore_priv_state, dev); |
261 | 261 |
cpu_register_physical_memory(base, 0x1000, s->iomemtype); |
Also available in: Unified diff