The value and the getter are int32.

Fixes: d33382da9ab ("memory: MemoryRegion: Add may-overlap and priority props")
Reviewed-by: Mark Cave-Ayland <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
---
 system/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/memory.c b/system/memory.c
index 9760721e4550..d4a0a5b81805 100644
--- a/system/memory.c
+++ b/system/memory.c
@@ -1318,7 +1318,7 @@ static void memory_region_initfn(Object *obj)
 
     object_property_add_uint64_ptr(OBJECT(mr), "addr",
                                    &mr->addr, OBJ_PROP_FLAG_READ);
-    object_property_add(OBJECT(mr), "priority", "uint32",
+    object_property_add(OBJECT(mr), "priority", "int32",
                         memory_region_get_priority,
                         NULL, /* memory_region_set_priority */
                         NULL, NULL);

-- 
2.55.0.543.g5ebe2ebe4ea8


Reply via email to