target/arm: Remove size and alignment for cpu subclasses
Inherit the size and alignment from TYPE_ARM_CPU. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
ad4ec2798f
commit
61cd357698
@ -2423,10 +2423,7 @@ void arm_cpu_register(const ARMCPUInfo *info)
|
||||
{
|
||||
TypeInfo type_info = {
|
||||
.parent = TYPE_ARM_CPU,
|
||||
.instance_size = sizeof(ARMCPU),
|
||||
.instance_align = __alignof__(ARMCPU),
|
||||
.instance_init = arm_cpu_instance_init,
|
||||
.class_size = sizeof(ARMCPUClass),
|
||||
.class_init = info->class_init ?: cpu_register_class_init,
|
||||
.class_data = (void *)info,
|
||||
};
|
||||
|
@ -822,9 +822,7 @@ void aarch64_cpu_register(const ARMCPUInfo *info)
|
||||
{
|
||||
TypeInfo type_info = {
|
||||
.parent = TYPE_AARCH64_CPU,
|
||||
.instance_size = sizeof(ARMCPU),
|
||||
.instance_init = aarch64_cpu_instance_init,
|
||||
.class_size = sizeof(ARMCPUClass),
|
||||
.class_init = info->class_init ?: cpu_register_class_init,
|
||||
.class_data = (void *)info,
|
||||
};
|
||||
@ -837,10 +835,8 @@ void aarch64_cpu_register(const ARMCPUInfo *info)
|
||||
static const TypeInfo aarch64_cpu_type_info = {
|
||||
.name = TYPE_AARCH64_CPU,
|
||||
.parent = TYPE_ARM_CPU,
|
||||
.instance_size = sizeof(ARMCPU),
|
||||
.instance_finalize = aarch64_cpu_finalizefn,
|
||||
.abstract = true,
|
||||
.class_size = sizeof(AArch64CPUClass),
|
||||
.class_init = aarch64_cpu_class_init,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user