[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Qemu-devel] [PATCH 5/5] make CPU a child of DeviceState
On Mon, Aug 20, 2012 at 01:39:39AM +0200, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov <imammedo@xxxxxxxxxx> > --- > include/qemu/cpu.h | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/qemu/cpu.h b/include/qemu/cpu.h > index ad706a6..ac44057 100644 > --- a/include/qemu/cpu.h > +++ b/include/qemu/cpu.h > @@ -20,7 +20,7 @@ > #ifndef QEMU_CPU_H > #define QEMU_CPU_H > > -#include "qemu/object.h" > +#include "hw/qdev-core.h" > #include "qemu-thread.h" > > /** > @@ -46,7 +46,7 @@ typedef struct CPUState CPUState; > */ > typedef struct CPUClass { > /*< private >*/ > - ObjectClass parent_class; > + DeviceClass parent_class; > /*< public >*/ > > void (*reset)(CPUState *cpu); > @@ -59,7 +59,7 @@ typedef struct CPUClass { > */ > struct CPUState { > /*< private >*/ > - Object parent_obj; > + DeviceState parent_obj; > /*< public >*/ > > struct QemuThread *thread; Don't you need to update cpu_type_info on qom/cpu.c as well? It still has .parent = TYPE_OBJECT. -- Eduardo _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |