mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Handle cpu_model in copy_cpu(), by Kirill A. Shutemov.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3778 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1b66074b2f
commit
01ba98161f
8 changed files with 12 additions and 8 deletions
|
@ -126,11 +126,13 @@ CPUM68KState *cpu_m68k_init(const char *cpu_model)
|
|||
return NULL;
|
||||
cpu_exec_init(env);
|
||||
|
||||
env->cpu_model_str = cpu_model;
|
||||
|
||||
if (cpu_m68k_set_model(env, cpu_model) < 0) {
|
||||
cpu_m68k_close(env);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
cpu_reset(env);
|
||||
return env;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue