diff mbox

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

Message ID f6b7736569019b3b1e97dcd5c1d8665b90f5a3b3.1373861126.git.peter.crosthwaite@xilinx.com
State New
Headers show

Commit Message

Peter Crosthwaite July 15, 2013, 4:10 a.m. UTC
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(-)
diff mbox

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,
     };