On 08/25/2011 04:36 PM, Peter Maydell wrote:
On 25 August 2011 14:22, Avi Kivity<a...@redhat.com>  wrote:
>  On 08/25/2011 04:13 PM, Jan Kiszka wrote:
>>  Packing all structs is not really a good idea, more a last resort.
>
>  btw, how are the non-x86s handling this? by trapping and fixuping in the
>  kernel?

If a structure's packing means it doesn't adhere to the relevant
alignment constraints for the architecture gcc will access the
misaligned integers with a sequence of byte loads and stores.

Thanks, good to know.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


Reply via email to