[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/5] make CPU a child of DeviceState
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH 5/5] make CPU a child of DeviceState |
Date: |
Tue, 21 Aug 2012 11:03:00 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Aug 20, 2012 at 01:39:39AM +0200, Igor Mammedov wrote:
> Signed-off-by: Igor Mammedov <address@hidden>
> ---
> 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
- Re: [Qemu-devel] [PATCH 1/5] move qemu_irq typedef out of cpu-common.h, (continued)
[Qemu-devel] [PATCH 3/5] qapi-types.h doesn't really need to include qemu-common.h, Igor Mammedov, 2012/08/19
[Qemu-devel] [PATCH 2/5] qdev: split up header so it can be used in cpu.h, Igor Mammedov, 2012/08/19
[Qemu-devel] [PATCH 4/5] cleanup error.h, included qapi-types.h aready has stdbool.h, Igor Mammedov, 2012/08/19
[Qemu-devel] [PATCH 5/5] make CPU a child of DeviceState, Igor Mammedov, 2012/08/19
- Re: [Qemu-devel] [PATCH 5/5] make CPU a child of DeviceState,
Eduardo Habkost <=
Re: [Qemu-devel] [PATCH 0/5 v2] cpu: make a child of DeviceState, Stefan Weil, 2012/08/20