On 18/08/2026 12:11, Marc-André Lureau wrote:

The getter and setter use visit_type_uint64, not visit_type_int.

Fixes: 3e0dceaf9450 ("i386: Register most CPU properties as class properties")
Signed-off-by: Marc-AndrĂ© Lureau <[email protected]>
---
  target/i386/cpu.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 3b30ded0cc02..567cbf04ca75 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -10947,13 +10947,13 @@ static void x86_cpu_common_class_init(ObjectClass 
*oc, const void *data)
dc->user_creatable = true; - object_class_property_add(oc, "family", "int",
+    object_class_property_add(oc, "family", "uint64",
                                x86_cpuid_version_get_family,
                                x86_cpuid_version_set_family, NULL, NULL);
-    object_class_property_add(oc, "model", "int",
+    object_class_property_add(oc, "model", "uint64",
                                x86_cpuid_version_get_model,
                                x86_cpuid_version_set_model, NULL, NULL);
-    object_class_property_add(oc, "stepping", "int",
+    object_class_property_add(oc, "stepping", "uint64",
                                x86_cpuid_version_get_stepping,
                                x86_cpuid_version_set_stepping, NULL, NULL);
      object_class_property_add_str(oc, "vendor",

Reviewed-by: Mark Cave-Ayland <[email protected]>


ATB,

Mark.


Reply via email to