| 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/core/qdev.h" |
| 11 | |
| 12 | void qdev_create_fake_machine(void) |
| 13 | { |
| 14 | Object *fake_machine_obj; |
| 15 | |
| 16 | fake_machine_obj = object_property_add_new_container(object_get_root(), |
| 17 | "machine"); |
| 18 | object_property_add_new_container(fake_machine_obj, "unattached"); |
| 19 | } |