Revision b794ec7c

b/hw/msi.c
155 155
    pci_set_word(dev->wmask + msi_data_off(dev, msi64bit), 0xffff);
156 156

  
157 157
    if (msi_per_vector_mask) {
158
        /* Make mask bits 0 to nr_vectors - 1 writeable. */
158 159
        pci_set_long(dev->wmask + msi_mask_off(dev, msi64bit),
159
                     /* (1U << nr_vectors) - 1 is undefined
160
                        when nr_vectors = 32 */
161 160
                     0xffffffff >> (PCI_MSI_VECTORS_MAX - nr_vectors));
162 161
    }
163 162
    return config_offset;
......
225 224
        return;
226 225
    }
227 226

  
228
    if (msi64bit){
227
    if (msi64bit) {
229 228
        address = pci_get_quad(dev->config + msi_address_lo_off(dev));
230 229
    } else {
231 230
        address = pci_get_long(dev->config + msi_address_lo_off(dev));
......
269 268
                   flags,
270 269
                   pci_get_long(dev->config + msi_address_lo_off(dev)));
271 270
    if (msi64bit) {
272
        fprintf(stderr, " addrss-hi: 0x%"PRIx32,
271
        fprintf(stderr, " address-hi: 0x%"PRIx32,
273 272
                pci_get_long(dev->config + msi_address_hi_off(dev)));
274 273
    }
275 274
    fprintf(stderr, " data: 0x%"PRIx16,

Also available in: Unified diff