root / hw / null-machine.c @ ab902981
History | View | Annotate | Download (915 Bytes)
1 | b4a738bf | Anthony Liguori | /*
|
---|---|---|---|
2 | b4a738bf | Anthony Liguori | * Empty machine
|
3 | b4a738bf | Anthony Liguori | *
|
4 | b4a738bf | Anthony Liguori | * Copyright IBM, Corp. 2012
|
5 | b4a738bf | Anthony Liguori | *
|
6 | b4a738bf | Anthony Liguori | * Authors:
|
7 | b4a738bf | Anthony Liguori | * Anthony Liguori <aliguori@us.ibm.com>
|
8 | b4a738bf | Anthony Liguori | *
|
9 | b4a738bf | Anthony Liguori | * This work is licensed under the terms of the GNU GPL, version 2 or later.
|
10 | b4a738bf | Anthony Liguori | * See the COPYING file in the top-level directory.
|
11 | b4a738bf | Anthony Liguori | *
|
12 | b4a738bf | Anthony Liguori | */
|
13 | b4a738bf | Anthony Liguori | |
14 | b4a738bf | Anthony Liguori | #include "qemu-common.h" |
15 | b4a738bf | Anthony Liguori | #include "hw/hw.h" |
16 | b4a738bf | Anthony Liguori | #include "hw/boards.h" |
17 | b4a738bf | Anthony Liguori | |
18 | b4a738bf | Anthony Liguori | static void machine_none_init(ram_addr_t ram_size, |
19 | b4a738bf | Anthony Liguori | const char *boot_device, |
20 | b4a738bf | Anthony Liguori | const char *kernel_filename, |
21 | b4a738bf | Anthony Liguori | const char *kernel_cmdline, |
22 | b4a738bf | Anthony Liguori | const char *initrd_filename, |
23 | b4a738bf | Anthony Liguori | const char *cpu_model) |
24 | b4a738bf | Anthony Liguori | { |
25 | b4a738bf | Anthony Liguori | } |
26 | b4a738bf | Anthony Liguori | |
27 | b4a738bf | Anthony Liguori | static QEMUMachine machine_none = {
|
28 | b4a738bf | Anthony Liguori | .name = "none",
|
29 | b4a738bf | Anthony Liguori | .desc = "empty machine",
|
30 | b4a738bf | Anthony Liguori | .init = machine_none_init, |
31 | b4a738bf | Anthony Liguori | .max_cpus = 0,
|
32 | b4a738bf | Anthony Liguori | }; |
33 | b4a738bf | Anthony Liguori | |
34 | b4a738bf | Anthony Liguori | static void register_machines(void) |
35 | b4a738bf | Anthony Liguori | { |
36 | b4a738bf | Anthony Liguori | qemu_register_machine(&machine_none); |
37 | b4a738bf | Anthony Liguori | } |
38 | b4a738bf | Anthony Liguori | |
39 | b4a738bf | Anthony Liguori | machine_init(register_machines); |