Received: from eggs.gnu.org ([208.118.235.92]:47035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3p2E-00024d-Vz for qemu-devel@nongnu.org; Tue, 21 Aug 2012 10:02:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3p29-0004yF-5m for qemu-devel@nongnu.org; Tue, 21 Aug 2012 10:02:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3p28-0004y3-Td for qemu-devel@nongnu.org; Tue, 21 Aug 2012 10:02:17 -0400 Date: Tue, 21 Aug 2012 11:03:00 -0300 From: Eduardo Habkost Message-ID: <20120821140300.GA4638@otherpad.lan.raisama.net> References: <1345419579-25499-1-git-send-email-imammedo@redhat.com> <1345419579-25499-6-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1345419579-25499-6-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH 5/5] make CPU a child of DeviceState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: peter.maydell@linaro.org, jan.kiszka@siemens.com, mjt@tls.msk.ru, qemu-devel@nongnu.org, armbru@redhat.com, blauwirbel@gmail.com, kraxel@redhat.com, xen-devel@lists.xensource.com, i.mitsyanko@samsung.com, mdroth@linux.vnet.ibm.com, avi@redhat.com, anthony.perard@citrix.com, lersek@redhat.com, stefanha@linux.vnet.ibm.com, stefano.stabellini@eu.citrix.com, sw@weilnetz.de, lcapitulino@redhat.com, rth@twiddle.net, kwolf@redhat.com, aliguori@us.ibm.com, mtosatti@redhat.com, pbonzini@redhat.com, afaerber@suse.de On Mon, Aug 20, 2012 at 01:39:39AM +0200, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > 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