Anthony Liguori | b4a738b | 2012-08-22 15:22:05 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Empty machine |
| 3 | * |
| 4 | * Copyright IBM, Corp. 2012 |
| 5 | * |
| 6 | * Authors: |
| 7 | * Anthony Liguori <aliguori@us.ibm.com> |
| 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 | |
Peter Maydell | 18c86e2 | 2016-01-26 18:17:29 +0000 | [diff] [blame] | 14 | #include "qemu/osdep.h" |
Anthony Liguori | b4a738b | 2012-08-22 15:22:05 -0500 | [diff] [blame] | 15 | #include "qemu-common.h" |
| 16 | #include "hw/hw.h" |
| 17 | #include "hw/boards.h" |
| 18 | |
Marcel Apfelbaum | 3ef9622 | 2014-05-07 17:42:57 +0300 | [diff] [blame] | 19 | static void machine_none_init(MachineState *machine) |
Anthony Liguori | b4a738b | 2012-08-22 15:22:05 -0500 | [diff] [blame] | 20 | { |
| 21 | } |
| 22 | |
Eduardo Habkost | e264d29 | 2015-09-04 15:37:08 -0300 | [diff] [blame] | 23 | static void machine_none_machine_init(MachineClass *mc) |
Anthony Liguori | b4a738b | 2012-08-22 15:22:05 -0500 | [diff] [blame] | 24 | { |
Eduardo Habkost | e264d29 | 2015-09-04 15:37:08 -0300 | [diff] [blame] | 25 | mc->desc = "empty machine"; |
| 26 | mc->init = machine_none_init; |
| 27 | mc->max_cpus = 0; |
Anthony Liguori | b4a738b | 2012-08-22 15:22:05 -0500 | [diff] [blame] | 28 | } |
| 29 | |
Eduardo Habkost | e264d29 | 2015-09-04 15:37:08 -0300 | [diff] [blame] | 30 | DEFINE_MACHINE("none", machine_none_machine_init) |