Add the CPU as child<> of / so that it can be inspected with qom-get. --- target-arm/cpu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/target-arm/cpu.c b/target-arm/cpu.c index 4dfec15..ad8e317 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -564,6 +564,8 @@ static void arm_cpu_initfn(Object *obj) object_property_add(obj, "halted", "boolean", arm_cpu_get_halted, NULL, NULL, NULL, NULL); + + object_property_add_child(object_get_root(), "cpu", obj, NULL); /* XXX */ } static void arm_cpu_class_init(ObjectClass *klass, void *data) -- 1.7.7