]> Git Repo - qemu.git/commit
powerpc pci: fixed packing of ranges[]
authorAlexey Kardashevskiy <[email protected]>
Wed, 18 Jul 2012 08:22:51 +0000 (18:22 +1000)
committerStefan Hajnoczi <[email protected]>
Sat, 21 Jul 2012 09:54:40 +0000 (10:54 +0100)
commitc4889f54237aec5195d42de2c87292d6e41dd704
tree4965065ee7eeca176718da4fff1c3b812d6088c2
parent61dc008f3529fa74a63aad1907438dad857e255a
powerpc pci: fixed packing of ranges[]

By default mingw-gcc is trying to pack structures the way to
preserve binary compatibility with MS Visual C what leads to
incorrect and unexpected padding in the PCI bus ranges property of
the sPAPR PHB.

The patch replaces __attribute__((packed)) with more strict QEMU_PACKED
which actually is __attribute__((gcc_struct, packed)) on Windows.

Signed-off-by: Alexey Kardashevskiy <[email protected]>
Tested-by: Stefan Weil <[email protected]>
Reviewed-by: Stefan Weil <[email protected]>
Acked-by: Alexander Graf <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/spapr_pci.c
This page took 0.024545 seconds and 4 git commands to generate.