aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2015-08-20 14:54:30 -0700
committerAndreas Färber <afaerber@suse.de>2015-09-19 16:38:49 +0200
commit64d3459c8586c8821970cbc99450340278507cfe (patch)
tree80eeb329f333617469965227ce1aa6dcc41f09fa /hw/arm
parentfc603d29e96a2982f1b02123f83176f00a660b40 (diff)
arm: Rename virt machine class to use MACHINE_TYPE_NAME
Machine class names should use the "-machine" suffix to allow class-name-based machine class lookup to work. Rename the arm virt machine class using the MACHINE_TYPE_NAME macro. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/virt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index e9324f56bd..fba259529b 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -83,7 +83,8 @@ typedef struct {
bool highmem;
} VirtMachineState;
-#define TYPE_VIRT_MACHINE "virt"
+#define VIRT_MACHINE_NAME "virt"
+#define TYPE_VIRT_MACHINE MACHINE_TYPE_NAME(VIRT_MACHINE_NAME)
#define VIRT_MACHINE(obj) \
OBJECT_CHECK(VirtMachineState, (obj), TYPE_VIRT_MACHINE)
#define VIRT_MACHINE_GET_CLASS(obj) \
@@ -1073,7 +1074,7 @@ static void virt_class_init(ObjectClass *oc, void *data)
{
MachineClass *mc = MACHINE_CLASS(oc);
- mc->name = TYPE_VIRT_MACHINE;
+ mc->name = VIRT_MACHINE_NAME;
mc->desc = "ARM Virtual Machine",
mc->init = machvirt_init;
mc->max_cpus = 8;