Re: [Qemu-devel] [PATCH RFC 4/7] qom: Introduce CPU class

2012-01-31 Thread Andreas Färber
Am 30.01.2012 03:14, schrieb Anthony Liguori: > On 01/29/2012 07:25 AM, Andreas Färber wrote: >> +static TypeInfo cpu_type_info = { >> +.name = TYPE_CPU, >> +.parent = TYPE_OBJECT, >> +.instance_size = sizeof(CPU), > > > Probably want to do CPUState or something of that nature so that

Re: [Qemu-devel] [PATCH RFC 4/7] qom: Introduce CPU class

2012-01-30 Thread Andreas Färber
Am 30.01.2012 03:14, schrieb Anthony Liguori: > On 01/29/2012 07:25 AM, Andreas Färber wrote: >> +static TypeInfo cpu_type_info = { >> +.name = TYPE_CPU, >> +.parent = TYPE_OBJECT, >> +.instance_size = sizeof(CPU), > > > Probably want to do CPUState or something of that nature so that

Re: [Qemu-devel] [PATCH RFC 4/7] qom: Introduce CPU class

2012-01-29 Thread Anthony Liguori
On 01/29/2012 07:25 AM, Andreas Färber wrote: It's abstract, derived directly from TYPE_OBJECT (to avoid dependency on MODULE_INIT_DEVICE) and for now is empty. Place it in hw/. Have user emulators pick it up via VPATH, building it per target since they didn't use any qdev/QOM devices so far. I

[Qemu-devel] [PATCH RFC 4/7] qom: Introduce CPU class

2012-01-29 Thread Andreas Färber
It's abstract, derived directly from TYPE_OBJECT (to avoid dependency on MODULE_INIT_DEVICE) and for now is empty. Place it in hw/. Have user emulators pick it up via VPATH, building it per target since they didn't use any qdev/QOM devices so far. Introduce processor_init() for registering, and c