From: Cornelia Huck Date: Tue, 29 Jan 2013 15:33:04 +0000 (+0100) Subject: s390: Drop set_bit usage in virtio_ccw. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=19380b1bf587fd962a60fb40cc4927ba999cf17b;p=qemu.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 [agraf: use 1ULL instead] Signed-off-by: Alexander Graf --- diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index 7d7f33637f..231f81e48c 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -662,12 +662,12 @@ static void virtio_ccw_notify(DeviceState *d, uint16_t vector) if (vector < VIRTIO_PCI_QUEUE_MAX) { indicators = ldq_phys(dev->indicators); - set_bit(vector, &indicators); + indicators |= 1ULL << vector; stq_phys(dev->indicators, indicators); } else { vector = 0; indicators = ldq_phys(dev->indicators2); - set_bit(vector, &indicators); + indicators |= 1ULL << vector; stq_phys(dev->indicators2, indicators); }