Revision aaed909a hw/versatilepb.c
b/hw/versatilepb.c | ||
---|---|---|
167 | 167 |
int n; |
168 | 168 |
int done_smc = 0; |
169 | 169 |
|
170 |
env = cpu_init(); |
|
171 | 170 |
if (!cpu_model) |
172 | 171 |
cpu_model = "arm926"; |
173 |
cpu_arm_set_model(env, cpu_model); |
|
172 |
env = cpu_init(cpu_model); |
|
173 |
if (!env) { |
|
174 |
fprintf(stderr, "Unable to find CPU definition\n"); |
|
175 |
exit(1); |
|
176 |
} |
|
174 | 177 |
/* ??? RAM shoud repeat to fill physical memory space. */ |
175 | 178 |
/* SDRAM at address zero. */ |
176 | 179 |
cpu_register_physical_memory(0, ram_size, IO_MEM_RAM); |
Also available in: Unified diff