mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23: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
|
@ -150,10 +150,6 @@ static void mips_cpu_initfn(Object *obj)
|
|||
|
||||
cs->env_ptr = env;
|
||||
env->cpu_model = mcc->cpu_def;
|
||||
|
||||
if (tcg_enabled()) {
|
||||
mips_tcg_init();
|
||||
}
|
||||
}
|
||||
|
||||
static char *mips_cpu_type_name(const char *cpu_model)
|
||||
|
@ -202,6 +198,7 @@ static void mips_cpu_class_init(ObjectClass *c, void *data)
|
|||
cc->vmsd = &vmstate_mips_cpu;
|
||||
#endif
|
||||
cc->disas_set_info = mips_cpu_disas_set_info;
|
||||
cc->tcg_initialize = mips_tcg_init;
|
||||
|
||||
cc->gdb_num_core_regs = 73;
|
||||
cc->gdb_stop_before_watchpoint = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue