OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aee0bf7
)
target-i386: cpu_x86_register(): report error from property setter
author
Igor Mammedov
<imammedo@redhat.com>
Tue, 2 Oct 2012 15:36:54 +0000
(17:36 +0200)
committer
Andreas Färber
<afaerber@suse.de>
Tue, 30 Oct 2012 21:38:37 +0000
(22:38 +0100)
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c
patch
|
blob
|
history
diff --git
a/target-i386/cpu.c
b/target-i386/cpu.c
index
d4f2e65
..
f3a3121
100644
(file)
--- a/
target-i386/cpu.c
+++ b/
target-i386/cpu.c
@@
-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;
}