Re: Difference between 'current_machine' vs MACHINE(qdev_get_machine())

2020-01-13 Thread Markus Armbruster
Paolo Bonzini writes: > On 09/01/20 12:23, Philippe Mathieu-Daudé wrote: >> >> >>     current_machine = >> MACHINE(object_new_with_class(OBJECT_CLASS(machine_class))); >>     object_property_add_child(object_get_root(), "machine", >>   OBJECT(current_machine), &error

Re: Difference between 'current_machine' vs MACHINE(qdev_get_machine())

2020-01-10 Thread Philippe Mathieu-Daudé
On 1/9/20 4:24 PM, Like Xu wrote: On 2020/1/9 20:01, Paolo Bonzini wrote: On 09/01/20 12:23, Philippe Mathieu-Daudé wrote: current_machine = MACHINE(object_new_with_class(OBJECT_CLASS(machine_class))); object_property_add_child(object_get_root(), "machine",  

Re: Difference between 'current_machine' vs MACHINE(qdev_get_machine())

2020-01-09 Thread Like Xu
On 2020/1/9 20:01, Paolo Bonzini wrote: On 09/01/20 12:23, Philippe Mathieu-Daudé wrote:     current_machine = MACHINE(object_new_with_class(OBJECT_CLASS(machine_class)));     object_property_add_child(object_get_root(), "machine",   OBJECT(current_machine), &err

Re: Difference between 'current_machine' vs MACHINE(qdev_get_machine())

2020-01-09 Thread Paolo Bonzini
On 09/01/20 12:23, Philippe Mathieu-Daudé wrote: > > >     current_machine = > MACHINE(object_new_with_class(OBJECT_CLASS(machine_class))); >     object_property_add_child(object_get_root(), "machine", >   OBJECT(current_machine), &error_abort); > > The bigger user of

Difference between 'current_machine' vs MACHINE(qdev_get_machine())

2020-01-09 Thread Philippe Mathieu-Daudé
Hi, "hw/boards.h" declare current_machine, and vl.c defines it: current_machine = MACHINE(object_new_with_class(OBJECT_CLASS(machine_class))); object_property_add_child(object_get_root(), "machine", OBJECT(current_machine), &error_abort); The bigger user