Revision a8170e5e hw/mcf5208.c
b/hw/mcf5208.c | ||
---|---|---|
45 | 45 |
qemu_irq_lower(s->irq); |
46 | 46 |
} |
47 | 47 |
|
48 |
static void m5208_timer_write(void *opaque, target_phys_addr_t offset,
|
|
48 |
static void m5208_timer_write(void *opaque, hwaddr offset,
|
|
49 | 49 |
uint64_t value, unsigned size) |
50 | 50 |
{ |
51 | 51 |
m5208_timer_state *s = (m5208_timer_state *)opaque; |
... | ... | |
107 | 107 |
m5208_timer_update(s); |
108 | 108 |
} |
109 | 109 |
|
110 |
static uint64_t m5208_timer_read(void *opaque, target_phys_addr_t addr,
|
|
110 |
static uint64_t m5208_timer_read(void *opaque, hwaddr addr,
|
|
111 | 111 |
unsigned size) |
112 | 112 |
{ |
113 | 113 |
m5208_timer_state *s = (m5208_timer_state *)opaque; |
... | ... | |
130 | 130 |
.endianness = DEVICE_NATIVE_ENDIAN, |
131 | 131 |
}; |
132 | 132 |
|
133 |
static uint64_t m5208_sys_read(void *opaque, target_phys_addr_t addr,
|
|
133 |
static uint64_t m5208_sys_read(void *opaque, hwaddr addr,
|
|
134 | 134 |
unsigned size) |
135 | 135 |
{ |
136 | 136 |
switch (addr) { |
... | ... | |
152 | 152 |
} |
153 | 153 |
} |
154 | 154 |
|
155 |
static void m5208_sys_write(void *opaque, target_phys_addr_t addr,
|
|
155 |
static void m5208_sys_write(void *opaque, hwaddr addr,
|
|
156 | 156 |
uint64_t value, unsigned size) |
157 | 157 |
{ |
158 | 158 |
hw_error("m5208_sys_write: Bad offset 0x%x\n", (int)addr); |
... | ... | |
195 | 195 |
CPUM68KState *env; |
196 | 196 |
int kernel_size; |
197 | 197 |
uint64_t elf_entry; |
198 |
target_phys_addr_t entry;
|
|
198 |
hwaddr entry;
|
|
199 | 199 |
qemu_irq *pic; |
200 | 200 |
MemoryRegion *address_space_mem = get_system_memory(); |
201 | 201 |
MemoryRegion *ram = g_new(MemoryRegion, 1); |
Also available in: Unified diff