mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
qom: Introduce CPUClass.tcg_initialize
Move target cpu tcg initialization to common code, called from cpu_exec_realizefn. Acked-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
11f4e8f8bf
commit
55c3ceef61
32 changed files with 40 additions and 163 deletions
|
@ -108,8 +108,6 @@ static void hppa_cpu_initfn(Object *obj)
|
|||
cs->env_ptr = env;
|
||||
cpu_hppa_loaded_fr0(env);
|
||||
set_snan_bit_is_one(true, &env->fp_status);
|
||||
|
||||
hppa_translate_init();
|
||||
}
|
||||
|
||||
static ObjectClass *hppa_cpu_class_by_name(const char *cpu_model)
|
||||
|
@ -136,6 +134,7 @@ static void hppa_cpu_class_init(ObjectClass *oc, void *data)
|
|||
cc->gdb_write_register = hppa_cpu_gdb_write_register;
|
||||
cc->handle_mmu_fault = hppa_cpu_handle_mmu_fault;
|
||||
cc->disas_set_info = hppa_cpu_disas_set_info;
|
||||
cc->tcg_initialize = hppa_translate_init;
|
||||
|
||||
cc->gdb_num_core_regs = 128;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue