2015-08-21 07:04:50 +00:00
|
|
|
/*
|
|
|
|
* QEMU Machine
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Red Hat Inc
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Marcel Apfelbaum <marcel.a@redhat.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
* See the COPYING file in the top-level directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "hw/boards.h"
|
|
|
|
|
|
|
|
static void machine_initfn(struct uc_struct *uc, Object *obj, void *opaque)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void machine_finalize(struct uc_struct *uc, Object *obj, void *opaque)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static const TypeInfo machine_info = {
|
2017-01-20 06:27:22 +00:00
|
|
|
TYPE_MACHINE,
|
|
|
|
TYPE_OBJECT,
|
|
|
|
|
|
|
|
sizeof(MachineClass),
|
|
|
|
sizeof(MachineState),
|
2017-01-21 01:28:22 +00:00
|
|
|
NULL,
|
2017-01-20 06:27:22 +00:00
|
|
|
|
|
|
|
machine_initfn,
|
2017-01-21 01:28:22 +00:00
|
|
|
NULL,
|
2017-01-20 06:27:22 +00:00
|
|
|
machine_finalize,
|
2017-01-21 01:28:22 +00:00
|
|
|
|
|
|
|
NULL,
|
2017-01-20 06:27:22 +00:00
|
|
|
|
2017-01-21 01:28:22 +00:00
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
2017-01-20 06:27:22 +00:00
|
|
|
|
2017-01-21 01:28:22 +00:00
|
|
|
true,
|
2015-08-21 07:04:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void machine_register_types(struct uc_struct *uc)
|
|
|
|
{
|
|
|
|
type_register_static(uc, &machine_info);
|
|
|
|
}
|