]> Git Repo - qemu.git/blob - hw/null-machine.c
boards: add a 'none' machine type to all platforms
[qemu.git] / hw / null-machine.c
1 /*
2  * Empty machine
3  *
4  * Copyright IBM, Corp. 2012
5  *
6  * Authors:
7  *  Anthony Liguori   <[email protected]>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2 or later.
10  * See the COPYING file in the top-level directory.
11  *
12  */
13
14 #include "qemu-common.h"
15 #include "hw/hw.h"
16 #include "hw/boards.h"
17
18 static void machine_none_init(ram_addr_t ram_size,
19                               const char *boot_device,
20                               const char *kernel_filename,
21                               const char *kernel_cmdline,
22                               const char *initrd_filename,
23                               const char *cpu_model)
24 {
25 }
26
27 static QEMUMachine machine_none = {
28     .name = "none",
29     .desc = "empty machine",
30     .init = machine_none_init,
31     .max_cpus = 0,
32 };
33
34 static void register_machines(void)
35 {
36     qemu_register_machine(&machine_none);
37 }
38
39 machine_init(register_machines);
40
This page took 0.027127 seconds and 4 git commands to generate.