mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
qdev: Switch property accessors to fixed-width visitor interfaces
This introduces {get,set}_uint{8,16,32,64}() functions for the
respective qdev types.
TADDR and VLAN are switched to explicit int64, BLOCKSIZE to uint16.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
09f1bbcd83
commit
c08fb2ac00
2 changed files with 91 additions and 63 deletions
|
|
@ -27,7 +27,7 @@ static void get_taddr(Object *obj, Visitor *v, void *opaque,
|
|||
int64_t value;
|
||||
|
||||
value = *ptr;
|
||||
visit_type_int(v, &value, name, errp);
|
||||
visit_type_int64(v, &value, name, errp);
|
||||
}
|
||||
|
||||
static void set_taddr(Object *obj, Visitor *v, void *opaque,
|
||||
|
|
@ -44,7 +44,7 @@ static void set_taddr(Object *obj, Visitor *v, void *opaque,
|
|||
return;
|
||||
}
|
||||
|
||||
visit_type_int(v, &value, name, &local_err);
|
||||
visit_type_int64(v, &value, name, &local_err);
|
||||
if (local_err) {
|
||||
error_propagate(errp, local_err);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue