mirror of https://github.com/xemu-project/xemu.git
s390: Drop set_bit usage in virtio_ccw.
set_bit on indicators doesn't go well on 32 bit targets: note: expected 'long unsigned int *' but argument is of type 'uint64_t *' Switch to bit shifts instead. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> [agraf: use 1ULL instead] Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
8d034a6fad
commit
19380b1bf5
|
@ -662,12 +662,12 @@ static void virtio_ccw_notify(DeviceState *d, uint16_t vector)
|
||||||
|
|
||||||
if (vector < VIRTIO_PCI_QUEUE_MAX) {
|
if (vector < VIRTIO_PCI_QUEUE_MAX) {
|
||||||
indicators = ldq_phys(dev->indicators);
|
indicators = ldq_phys(dev->indicators);
|
||||||
set_bit(vector, &indicators);
|
indicators |= 1ULL << vector;
|
||||||
stq_phys(dev->indicators, indicators);
|
stq_phys(dev->indicators, indicators);
|
||||||
} else {
|
} else {
|
||||||
vector = 0;
|
vector = 0;
|
||||||
indicators = ldq_phys(dev->indicators2);
|
indicators = ldq_phys(dev->indicators2);
|
||||||
set_bit(vector, &indicators);
|
indicators |= 1ULL << vector;
|
||||||
stq_phys(dev->indicators2, indicators);
|
stq_phys(dev->indicators2, indicators);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue