mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target-m68k: Start QOM'ifying CPU init
Move model-independent code from cpu_m68k_init() into a QOM initfn. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Laurent Vivier <Laurent@Vivier.EU> Tested-by: Laurent Vivier <Laurent@Vivier.EU>
This commit is contained in:
parent
11c1986817
commit
9b7060396e
2 changed files with 10 additions and 1 deletions
|
@ -156,7 +156,7 @@ CPUM68KState *cpu_m68k_init(const char *cpu_model)
|
|||
|
||||
cpu = M68K_CPU(object_new(TYPE_M68K_CPU));
|
||||
env = &cpu->env;
|
||||
cpu_exec_init(env);
|
||||
|
||||
if (!inited) {
|
||||
inited = 1;
|
||||
m68k_tcg_init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue