Revision 322164e0
b/hw/ppc440_bamboo.c | ||
---|---|---|
172 | 172 |
qemu_irq *pic; |
173 | 173 |
qemu_irq *irqs; |
174 | 174 |
PCIBus *pcibus; |
175 |
PowerPCCPU *cpu; |
|
175 | 176 |
CPUPPCState *env; |
176 | 177 |
uint64_t elf_entry; |
177 | 178 |
uint64_t elf_lowaddr; |
... | ... | |
185 | 186 |
if (cpu_model == NULL) { |
186 | 187 |
cpu_model = "440EP"; |
187 | 188 |
} |
188 |
env = cpu_init(cpu_model);
|
|
189 |
if (!env) {
|
|
189 |
cpu = cpu_ppc_init(cpu_model);
|
|
190 |
if (cpu == NULL) {
|
|
190 | 191 |
fprintf(stderr, "Unable to initialize CPU!\n"); |
191 | 192 |
exit(1); |
192 | 193 |
} |
194 |
env = &cpu->env; |
|
193 | 195 |
|
194 | 196 |
qemu_register_reset(main_cpu_reset, env); |
195 | 197 |
ppc_booke_timers_init(env, 400000000, 0); |
Also available in: Unified diff