]> Git Repo - qemu.git/commitdiff
target-i386: cpu_x86_register(): report error from property setter
authorIgor Mammedov <[email protected]>
Tue, 2 Oct 2012 15:36:54 +0000 (17:36 +0200)
committerAndreas Färber <[email protected]>
Tue, 30 Oct 2012 21:38:37 +0000 (22:38 +0100)
Signed-off-by: Igor Mammedov <[email protected]>
Reviewed-by: Eduardo Habkost <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
target-i386/cpu.c

index d4f2e65cd91ed7a2e8a24691c7d795230b50ebd8..f3a31212eb99c2a324fdf31fa1ae5e7a142be1bd 100644 (file)
@@ -1427,7 +1427,8 @@ int cpu_x86_register(X86CPU *cpu, const char *cpu_model)
         env->cpuid_svm_features &= TCG_SVM_FEATURES;
     }
     object_property_set_str(OBJECT(cpu), def->model_id, "model-id", &error);
-    if (error_is_set(&error)) {
+    if (error) {
+        fprintf(stderr, "%s\n", error_get_pretty(error));
         error_free(error);
         return -1;
     }
This page took 0.022869 seconds and 4 git commands to generate.