]> Git Repo - qemu.git/blobdiff - qmp.c
tcg-aarch64: Implement tcg_register_jit
[qemu.git] / qmp.c
diff --git a/qmp.c b/qmp.c
index d0d98e777b1a41f0bdd310d394f77c2a5aaeb9a7..87a28f797d5969af1805f60ec883049c23f86d43 100644 (file)
--- a/qmp.c
+++ b/qmp.c
@@ -114,8 +114,11 @@ void qmp_cpu(int64_t index, Error **errp)
 
 void qmp_cpu_add(int64_t id, Error **errp)
 {
-    if (current_machine->hot_add_cpu) {
-        current_machine->hot_add_cpu(id, errp);
+    MachineClass *mc;
+
+    mc = MACHINE_GET_CLASS(current_machine);
+    if (mc->qemu_machine->hot_add_cpu) {
+        mc->qemu_machine->hot_add_cpu(id, errp);
     } else {
         error_setg(errp, "Not supported");
     }
@@ -556,8 +559,8 @@ void object_add(const char *type, const char *id, const QDict *qdict,
     }
 
     if (!object_dynamic_cast(obj, TYPE_USER_CREATABLE)) {
-        error_setg(&local_err, "object '%s' isn't supported by object-add",
-                   id);
+        error_setg(&local_err, "object type '%s' isn't supported by object-add",
+                   type);
         goto out;
     }
 
This page took 0.024423 seconds and 4 git commands to generate.