Revision aaed909a hw/ppc4xx_devs.c
b/hw/ppc4xx_devs.c | ||
---|---|---|
37 | 37 |
uint32_t sysclk) |
38 | 38 |
{ |
39 | 39 |
CPUState *env; |
40 |
ppc_def_t *def; |
|
41 | 40 |
|
42 | 41 |
/* init CPUs */ |
43 |
env = cpu_init(); |
|
44 |
ppc_find_by_name(cpu_model, &def);
|
|
45 |
if (def == NULL) {
|
|
46 |
cpu_abort(env, "Unable to find PowerPC %s CPU definition\n",
|
|
47 |
cpu_model);
|
|
42 |
env = cpu_init(cpu_model);
|
|
43 |
if (!env) {
|
|
44 |
fprintf(stderr, "Unable to find PowerPC %s CPU definition\n",
|
|
45 |
cpu_model);
|
|
46 |
exit(1);
|
|
48 | 47 |
} |
49 |
cpu_ppc_register(env, def); |
|
50 |
cpu_ppc_reset(env); |
|
51 | 48 |
cpu_clk->cb = NULL; /* We don't care about CPU clock frequency changes */ |
52 | 49 |
cpu_clk->opaque = env; |
53 | 50 |
/* Set time-base frequency to sysclk */ |
Also available in: Unified diff