From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwa9x-00015n-6T for qemu-devel@nongnu.org; Thu, 25 Aug 2011 09:39:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qwa9v-0001Cm-DZ for qemu-devel@nongnu.org; Thu, 25 Aug 2011 09:39:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qwa9v-0001CE-4l for qemu-devel@nongnu.org; Thu, 25 Aug 2011 09:39:51 -0400 Message-ID: <4E5650A0.3030100@redhat.com> Date: Thu, 25 Aug 2011 16:39:44 +0300 From: Avi Kivity MIME-Version: 1.0 References: <4E48BF2F.7080901@web.de> <4E501243.2090806@mail.berlios.de> <4E54C045.9020007@web.de> <4E562C38.3010908@web.de> <4E564254.2080204@web.de> <4E5648C4.3000604@us.ibm.com> <4E564A72.6080108@web.de> <4E564C80.3060306@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL] slirp: Fix issues with -mms-bitfields List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Blue Swirl , TeLeMan , Anthony Liguori , Jan Kiszka , qemu-devel On 08/25/2011 04:36 PM, Peter Maydell wrote: > On 25 August 2011 14:22, Avi Kivity 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.