2012-02-14 04:16:17 +04:00
|
|
|
/*
|
|
|
|
* QEMU UniCore32 CPU
|
|
|
|
*
|
|
|
|
* Copyright (c) 2012 SUSE LINUX Products GmbH
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation, or (at your option) any
|
|
|
|
* later version. See the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
#ifndef QEMU_UC32_CPU_QOM_H
|
|
|
|
#define QEMU_UC32_CPU_QOM_H
|
|
|
|
|
2019-07-09 18:20:52 +03:00
|
|
|
#include "hw/core/cpu.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2012-02-14 04:16:17 +04:00
|
|
|
|
|
|
|
#define TYPE_UNICORE32_CPU "unicore32-cpu"
|
|
|
|
|
2020-09-01 00:07:37 +03:00
|
|
|
OBJECT_DECLARE_TYPE(UniCore32CPU, UniCore32CPUClass,
|
qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros
One of the goals of having less boilerplate on QOM declarations
is to avoid human error. Requiring an extra argument that is
never used is an opportunity for mistakes.
Remove the unused argument from OBJECT_DECLARE_TYPE and
OBJECT_DECLARE_SIMPLE_TYPE.
Coccinelle patch used to convert all users of the macros:
@@
declarer name OBJECT_DECLARE_TYPE;
identifier InstanceType, ClassType, lowercase, UPPERCASE;
@@
OBJECT_DECLARE_TYPE(InstanceType, ClassType,
- lowercase,
UPPERCASE);
@@
declarer name OBJECT_DECLARE_SIMPLE_TYPE;
identifier InstanceType, lowercase, UPPERCASE;
@@
OBJECT_DECLARE_SIMPLE_TYPE(InstanceType,
- lowercase,
UPPERCASE);
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Paul Durrant <paul@xen.org>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200916182519.415636-4-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2020-09-16 21:25:17 +03:00
|
|
|
UNICORE32_CPU)
|
2012-02-14 04:16:17 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* UniCore32CPUClass:
|
2013-01-05 17:38:30 +04:00
|
|
|
* @parent_realize: The parent class' realize handler.
|
2012-02-14 04:16:17 +04:00
|
|
|
*
|
|
|
|
* A UniCore32 CPU model.
|
|
|
|
*/
|
2020-09-03 23:43:22 +03:00
|
|
|
struct UniCore32CPUClass {
|
2012-02-14 04:16:17 +04:00
|
|
|
/*< private >*/
|
|
|
|
CPUClass parent_class;
|
|
|
|
/*< public >*/
|
2013-01-05 17:38:30 +04:00
|
|
|
|
|
|
|
DeviceRealize parent_realize;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2012-02-14 04:16:17 +04:00
|
|
|
|
2013-02-02 13:57:51 +04:00
|
|
|
|
2012-02-14 04:16:17 +04:00
|
|
|
#endif
|