]> Git Repo - qemu.git/blobdiff - hw/s390x/virtio-ccw.c
s390: Drop set_bit usage in virtio_ccw.
[qemu.git] / hw / s390x / virtio-ccw.c
index 7d7f33637fc5d3b2737241b55a012e939c13e2d9..231f81e48cc66968c945a76b60377f799098abd9 100644 (file)
@@ -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);
     }
 
This page took 0.0247230000000001 seconds and 4 git commands to generate.