Revision 01ba9816 exec.c
b/exec.c | ||
---|---|---|
1317 | 1317 |
|
1318 | 1318 |
CPUState *cpu_copy(CPUState *env) |
1319 | 1319 |
{ |
1320 |
#if 0 |
|
1321 |
/* XXX: broken, must be handled by each CPU */ |
|
1322 |
CPUState *new_env = cpu_init(); |
|
1320 |
CPUState *new_env = cpu_init(env->cpu_model_str); |
|
1323 | 1321 |
/* preserve chaining and index */ |
1324 | 1322 |
CPUState *next_cpu = new_env->next_cpu; |
1325 | 1323 |
int cpu_index = new_env->cpu_index; |
... | ... | |
1327 | 1325 |
new_env->next_cpu = next_cpu; |
1328 | 1326 |
new_env->cpu_index = cpu_index; |
1329 | 1327 |
return new_env; |
1330 |
#else |
|
1331 |
return NULL; |
|
1332 |
#endif |
|
1333 | 1328 |
} |
1334 | 1329 |
|
1335 | 1330 |
#if !defined(CONFIG_USER_ONLY) |
Also available in: Unified diff