2
0

qdev-user.c 495 B

12345678910111213141516171819
  1. /*
  2. * QDev helpers specific to user emulation.
  3. *
  4. * Copyright 2025 Linaro, Ltd.
  5. *
  6. * SPDX-License-Identifier: GPL-2.0-or-later
  7. */
  8. #include "qemu/osdep.h"
  9. #include "qom/object.h"
  10. #include "hw/qdev-core.h"
  11. void qdev_create_fake_machine(void)
  12. {
  13. Object *fake_machine_obj;
  14. fake_machine_obj = object_property_add_new_container(object_get_root(),
  15. "machine");
  16. object_property_add_new_container(fake_machine_obj, "unattached");
  17. }