mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
target-lm32: Introduce QOM realizefn for LM32CPU
Introduce a realizefn and set realized = true in cpu_lm32_init(). Also move cpu_reset() call from initfn to realizefn. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
ca45f8b044
commit
9c23169e8c
3 changed files with 20 additions and 4 deletions
|
@ -212,13 +212,13 @@ LM32CPU *cpu_lm32_init(const char *cpu_model)
|
|||
env->num_wps = def->num_watchpoints;
|
||||
env->cfg = cfg_by_def(def);
|
||||
|
||||
qemu_init_vcpu(env);
|
||||
|
||||
if (tcg_enabled() && !tcg_initialized) {
|
||||
tcg_initialized = 1;
|
||||
lm32_translate_init();
|
||||
}
|
||||
|
||||
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
|
||||
|
||||
return cpu;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue