qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH qom-next v2 1/5] target-arm/cpu.c: delete un-needed


From: peter . crosthwaite
Subject: [Qemu-devel] [PATCH qom-next v2 1/5] target-arm/cpu.c: delete un-needed instance/class sizes
Date: Thu, 11 Jul 2013 11:45:55 +1000

From: Peter Crosthwaite <address@hidden>

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

CC: address@hidden

Signed-off-by: Peter Crosthwaite <address@hidden>
---

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

diff --git a/target-arm/cpu.c b/target-arm/cpu.c
index 1bc227e..ed53df8 100644
--- a/target-arm/cpu.c
+++ b/target-arm/cpu.c
@@ -823,9 +823,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,
     };
 
-- 
1.8.3.rc1.44.gb387c77.dirty




reply via email to

[Prev in Thread] Current Thread [Next in Thread]