mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
exec: split cpu_exec_init()
Put in cpu_exec_initfn() what initializes the CPU, and leave in cpu_exec_init() what adds it to the environment. As cpu_exec_initfn() is called by all XX_cpu_initfn(), call it directly in cpu_common_initfn(). cpu_exec_init() is now a realize function, it will be renamed to cpu_exec_realizefn() and moved to the XX_cpu_realizefn() function in a following patch. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
00d0f9fd66
commit
39e329e341
3 changed files with 9 additions and 4 deletions
|
@ -362,6 +362,8 @@ static void cpu_common_initfn(Object *obj)
|
|||
QTAILQ_INIT(&cpu->watchpoints);
|
||||
|
||||
cpu->trace_dstate = bitmap_new(trace_get_vcpu_event_count());
|
||||
|
||||
cpu_exec_initfn(cpu);
|
||||
}
|
||||
|
||||
static void cpu_common_finalize(Object *obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue