mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
target/hppa: Introduce TYPE_HPPA64_CPU
Prepare for the qemu binary supporting both pa10 and pa20 at the same time. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -209,20 +209,23 @@ static void hppa_cpu_class_init(ObjectClass *oc, void *data)
|
||||
cc->tcg_ops = &hppa_tcg_ops;
|
||||
}
|
||||
|
||||
static const TypeInfo hppa_cpu_type_info = {
|
||||
.name = TYPE_HPPA_CPU,
|
||||
.parent = TYPE_CPU,
|
||||
.instance_size = sizeof(HPPACPU),
|
||||
.instance_align = __alignof(HPPACPU),
|
||||
.instance_init = hppa_cpu_initfn,
|
||||
.abstract = false,
|
||||
.class_size = sizeof(HPPACPUClass),
|
||||
.class_init = hppa_cpu_class_init,
|
||||
static const TypeInfo hppa_cpu_type_infos[] = {
|
||||
{
|
||||
.name = TYPE_HPPA_CPU,
|
||||
.parent = TYPE_CPU,
|
||||
.instance_size = sizeof(HPPACPU),
|
||||
.instance_align = __alignof(HPPACPU),
|
||||
.instance_init = hppa_cpu_initfn,
|
||||
.abstract = false,
|
||||
.class_size = sizeof(HPPACPUClass),
|
||||
.class_init = hppa_cpu_class_init,
|
||||
},
|
||||
#ifdef TARGET_HPPA64
|
||||
{
|
||||
.name = TYPE_HPPA64_CPU,
|
||||
.parent = TYPE_HPPA_CPU,
|
||||
},
|
||||
#endif
|
||||
};
|
||||
|
||||
static void hppa_cpu_register_types(void)
|
||||
{
|
||||
type_register_static(&hppa_cpu_type_info);
|
||||
}
|
||||
|
||||
type_init(hppa_cpu_register_types)
|
||||
DEFINE_TYPES(hppa_cpu_type_infos)
|
||||
|
||||
Reference in New Issue
Block a user