mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-28 05:50:37 +00:00
3ef9622182
Total removal of QEMUMachineInitArgs struct. QEMUMachineInitArgs's fields are copied into MachineState. Removed duplicated fields from MachineState. All the other changes are only mechanical refactoring, no semantic changes. Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> (s390) Reviewed-by: Michael S. Tsirkin <mst@redhat.com> (PC) [AF: Renamed ms -> machine, use MACHINE_GET_CLASS()] Signed-off-by: Andreas Färber <afaerber@suse.de>
36 lines
633 B
C
36 lines
633 B
C
/*
|
|
* Empty machine
|
|
*
|
|
* Copyright IBM, Corp. 2012
|
|
*
|
|
* Authors:
|
|
* Anthony Liguori <aliguori@us.ibm.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 "qemu-common.h"
|
|
#include "hw/hw.h"
|
|
#include "hw/boards.h"
|
|
|
|
static void machine_none_init(MachineState *machine)
|
|
{
|
|
}
|
|
|
|
static QEMUMachine machine_none = {
|
|
.name = "none",
|
|
.desc = "empty machine",
|
|
.init = machine_none_init,
|
|
.max_cpus = 0,
|
|
};
|
|
|
|
static void register_machines(void)
|
|
{
|
|
qemu_register_machine(&machine_none);
|
|
}
|
|
|
|
machine_init(register_machines);
|
|
|