null-machine.c 915 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include "qemu-common.h"
  14. #include "hw/hw.h"
  15. #include "hw/boards.h"
  16. static void machine_none_init(ram_addr_t ram_size,
  17. const char *boot_device,
  18. const char *kernel_filename,
  19. const char *kernel_cmdline,
  20. const char *initrd_filename,
  21. const char *cpu_model)
  22. {
  23. }
  24. static QEMUMachine machine_none = {
  25. .name = "none",
  26. .desc = "empty machine",
  27. .init = machine_none_init,
  28. .max_cpus = 0,
  29. };
  30. static void register_machines(void)
  31. {
  32. qemu_register_machine(&machine_none);
  33. }
  34. machine_init(register_machines);