Patchwork [qom-next,v3,1/4] target-arm/cpu.c: delete un-needed instance/class sizes

login
register
mail settings
Submitter Peter Crosthwaite
Date July 15, 2013, 4:10 a.m.
Message ID <f6b7736569019b3b1e97dcd5c1d8665b90f5a3b3.1373861126.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/258947/
State New
Headers show

Comments

Peter Crosthwaite - July 15, 2013, 4:10 a.m.
From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

Since commit aca59af612840772f18598363b65a25bf02bb569 QOM
automatically inherits class and instance size from the parent
class. No need to redefine as the same value as the parent.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
---
changed since v2:
Added fixing commit reference (AF review).

 target-arm/cpu.c | 2 --
 1 file changed, 2 deletions(-)

Patch

diff --git a/target-arm/cpu.c b/target-arm/cpu.c
index be26acc..c2e1800 100644
--- a/target-arm/cpu.c
+++ b/target-arm/cpu.c
@@ -818,9 +818,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,
     };