Revision a8170e5e hw/ppc_newworld.c
b/hw/ppc_newworld.c | ||
---|---|---|
82 | 82 |
#endif |
83 | 83 |
|
84 | 84 |
/* UniN device */ |
85 |
static void unin_write(void *opaque, target_phys_addr_t addr, uint64_t value,
|
|
85 |
static void unin_write(void *opaque, hwaddr addr, uint64_t value,
|
|
86 | 86 |
unsigned size) |
87 | 87 |
{ |
88 | 88 |
UNIN_DPRINTF("write addr " TARGET_FMT_plx " val %"PRIx64"\n", addr, value); |
89 | 89 |
} |
90 | 90 |
|
91 |
static uint64_t unin_read(void *opaque, target_phys_addr_t addr, unsigned size)
|
|
91 |
static uint64_t unin_read(void *opaque, hwaddr addr, unsigned size)
|
|
92 | 92 |
{ |
93 | 93 |
uint32_t value; |
94 | 94 |
|
... | ... | |
115 | 115 |
return (addr & 0x0fffffff) + KERNEL_LOAD_ADDR; |
116 | 116 |
} |
117 | 117 |
|
118 |
static target_phys_addr_t round_page(target_phys_addr_t addr)
|
|
118 |
static hwaddr round_page(hwaddr addr)
|
|
119 | 119 |
{ |
120 | 120 |
return (addr + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK; |
121 | 121 |
} |
... | ... | |
143 | 143 |
MemoryRegion *unin_memory = g_new(MemoryRegion, 1); |
144 | 144 |
int linux_boot, i; |
145 | 145 |
MemoryRegion *ram = g_new(MemoryRegion, 1), *bios = g_new(MemoryRegion, 1); |
146 |
target_phys_addr_t kernel_base, initrd_base, cmdline_base = 0;
|
|
146 |
hwaddr kernel_base, initrd_base, cmdline_base = 0;
|
|
147 | 147 |
long kernel_size, initrd_size; |
148 | 148 |
PCIBus *pci_bus; |
149 | 149 |
MacIONVRAMState *nvr; |
Also available in: Unified diff