From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYKia-0002wo-Dt for qemu-devel@nongnu.org; Wed, 27 Aug 2008 09:05:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYKiY-0002vw-BD for qemu-devel@nongnu.org; Wed, 27 Aug 2008 09:05:47 -0400 Received: from [199.232.76.173] (port=50354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYKiY-0002vt-1T for qemu-devel@nongnu.org; Wed, 27 Aug 2008 09:05:46 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40935) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYKiX-0006GD-Dz for qemu-devel@nongnu.org; Wed, 27 Aug 2008 09:05:45 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m7RD59hi015486 for ; Wed, 27 Aug 2008 09:05:29 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m7RD4wRn007976 for ; Wed, 27 Aug 2008 09:04:58 -0400 Received: from zweiblum.travel.kraxel.org (vpn-4-120.str.redhat.com [10.32.4.120]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m7RD4pX8013476 for ; Wed, 27 Aug 2008 09:04:52 -0400 Message-ID: <48B550F3.709@redhat.com> Date: Wed, 27 Aug 2008 15:04:51 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch] add byteordered types References: <48B53E23.5040107@redhat.com> <200808271320.23183.paul@codesourcery.com> In-Reply-To: <200808271320.23183.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Paul Brook wrote: > On Wednesday 27 August 2008, Gerd Hoffmann wrote: >> +typedef struct { uint16_t le; } le16; > > This won't do what you expect on some targets. In particular older ARM targets > align all structs to a word (4-byte) boundary. Is this a default which can be changed by adding alignment atttributes? Or is it done unconditionally? cheers, Gerd