[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5] target-i386: Register QOM properties for fea

From: Eduardo Habkost
Subject: Re: [Qemu-devel] [PATCH v5] target-i386: Register QOM properties for feature flags
Date: Fri, 22 May 2015 16:13:55 -0300
User-agent: Mutt/1.5.23 (2014-03-12)

On Tue, Apr 14, 2015 at 12:28:24PM -0300, Eduardo Habkost wrote:
> This uses the feature name arrays to register QOM properties for feature
> flags. This simply adds properties that can be configured using -global,
> but doesn't change x86_cpu_parse_featurestr() to use them yet.
> Signed-off-by: Eduardo Habkost <address@hidden>

This is being applied to x86 tree with the following change, because the
object_property_add_alias() strdup() fix wasn't merged yet.

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index b2cf128..7042117 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -2947,7 +2947,8 @@ static void x86_cpu_register_feature_bit_props(X86CPU 
     for (i = 1; names[i]; i++) {
-        object_property_add_alias(obj, names[i], obj, names[0], &error_abort);
+        object_property_add_alias(obj, names[i], obj, g_strdup(names[0]),
+                                  &error_abort);

The g_strdup() call will be removed after the
object_property_add_alias() fix is applied.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]