« Previous | Next » 

Revision c4889f54

IDc4889f54237aec5195d42de2c87292d6e41dd704

Added by Alexey Kardashevskiy over 11 years ago

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 <>
Tested-by: Stefan Weil <>
Reviewed-by: Stefan Weil <>
Acked-by: Alexander Graf <>
Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences