mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target-sh4: Introduce QOM realizefn for SuperHCPU
Introduce a realizefn and set realized = true in cpu_sh4_init(). Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
1f1366322b
commit
55acb588dd
3 changed files with 19 additions and 2 deletions
|
@ -253,9 +253,10 @@ SuperHCPU *cpu_sh4_init(const char *cpu_model)
|
|||
env->features = def->features;
|
||||
sh4_translate_init();
|
||||
env->cpu_model_str = cpu_model;
|
||||
cpu_reset(CPU(cpu));
|
||||
cpu_register(env, def);
|
||||
qemu_init_vcpu(env);
|
||||
|
||||
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
|
||||
|
||||
return cpu;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue