mirror of https://github.com/xemu-project/xemu.git
platform-bus: use get_uint() for "addr" property
This is TYPE_MEMORY_REGION's property. Its getter memory_region_get_addr() uses visit_type_uint64(). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20170607163635.17635-27-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
c5c6c47ce3
commit
6d13643a3a
|
@ -71,7 +71,7 @@ hwaddr platform_bus_get_mmio_addr(PlatformBusDevice *pbus, SysBusDevice *sbdev,
|
|||
return -1;
|
||||
}
|
||||
|
||||
return object_property_get_int(OBJECT(sbdev_mr), "addr", NULL);
|
||||
return object_property_get_uint(OBJECT(sbdev_mr), "addr", NULL);
|
||||
}
|
||||
|
||||
static void platform_bus_count_irqs(SysBusDevice *sbdev, void *opaque)
|
||||
|
|
Loading…
Reference in New Issue