mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qdev: fix 64 bit properties
64 bit props used 32 bit callbacks in two places, leading to broken
feature bits on virtio (example: got 0x31000000000006d4 which is
obviously bogus). Fix this.
Fixes: fdba6d96
("qdev: add 64bit properties")
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c4fc82bf1a
commit
8aedc369c6
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ PropertyInfo qdev_prop_bit = {
|
|||
|
||||
static uint64_t qdev_get_prop_mask64(Property *prop)
|
||||
{
|
||||
assert(prop->info == &qdev_prop_bit);
|
||||
assert(prop->info == &qdev_prop_bit64);
|
||||
return 0x1ull << prop->bitnr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue