Am 18.06.2013 11:44, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite <peter.crosthwa...@xilinx.com> > > QOM automatically inherits class and instance size from the parent > class. No need to redefine as the same value as the parent.
It would be fair to mention since which commit because that was originally not the case. :) > > CC: qemu-triv...@nongnu.org > > Signed-off-by: Peter Crosthwaite <peter.crosthwa...@xilinx.com> Anyway, Reviewed-by: Andreas Färber <afaer...@suse.de> Andreas > --- > > target-arm/cpu.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/target-arm/cpu.c b/target-arm/cpu.c > index 496a59f..47a21ec 100644 > --- a/target-arm/cpu.c > +++ b/target-arm/cpu.c > @@ -821,9 +821,7 @@ static void cpu_register(const ARMCPUInfo *info) > { > TypeInfo type_info = { > .parent = TYPE_ARM_CPU, > - .instance_size = sizeof(ARMCPU), > .instance_init = info->initfn, > - .class_size = sizeof(ARMCPUClass), > .class_init = info->class_init, > }; > -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg