summaryrefslogtreecommitdiff
path: root/hw/qdev-addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/qdev-addr.c')
-rw-r--r--hw/qdev-addr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/qdev-addr.c b/hw/qdev-addr.c
index 5976dcdf47..8daa73339f 100644
--- a/hw/qdev-addr.c
+++ b/hw/qdev-addr.c
@@ -71,5 +71,8 @@ PropertyInfo qdev_prop_taddr = {
void qdev_prop_set_taddr(DeviceState *dev, const char *name, target_phys_addr_t value)
{
- qdev_prop_set(dev, name, &value, PROP_TYPE_TADDR);
+ Error *errp = NULL;
+ object_property_set_int(OBJECT(dev), value, name, &errp);
+ assert(!errp);
+
}