Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNK2T-0001uE-T3 for qemu-devel@nongnu.org; Fri, 02 Mar 2007 21:32:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HNK2S-0001tc-Cu for qemu-devel@nongnu.org; Fri, 02 Mar 2007 21:32:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNK2S-0001tV-8L for qemu-devel@nongnu.org; Fri, 02 Mar 2007 21:32:00 -0500 Received: from vc4-2-0-87.dsl.netrack.net ([199.45.160.85] helo=harmony.bsdimp.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HNK2R-0000at-Lc for qemu-devel@nongnu.org; Fri, 02 Mar 2007 21:32:00 -0500 Date: Fri, 02 Mar 2007 19:30:01 -0700 (MST) Message-Id: <20070302.193001.-300781426.imp@bsdimp.com> Subject: Re: [Qemu-devel] [PATCH] pcnet32 driver change, please test From: "M. Warner Losh" In-Reply-To: <200703030101.56126.paul@codesourcery.com> References: <20070302231450.GA6741@miranda.arrow> <20070302.175333.1622572844.imp@bsdimp.com> <200703030101.56126.paul@codesourcery.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii 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: paul@codesourcery.com Cc: qemu-devel@nongnu.org In message: <200703030101.56126.paul@codesourcery.com> Paul Brook writes: : > : I find this curious... C99 (6.7.2.1) says "the allocation order of : > : bit-fields within a unit (high-order to low-order or low-order to : > : high-order) is implementation defined". I can't see any requirement : > : for this, so is it just convention that bitfields on big endian systems : > : start from the most significant bit, and those on little endian systems : > : start from the least significant bit? (My thinking is that endianness : > : usually refers to byte ordering and not so much bit ordering.) : > : > This is a convention that goes back a very long ways. It was this way : > in the mid 1980's, and has remained true through today. I've : > personally observed this to be the case on many different MIPS : > compilers, ARM compilers and SPARC compilers over the years. : : I'm fairly sure I've seen targets that use other bitfield orderings, though I : can't remember offhand what they were. None of them are supported by FreeBSD and/or NetBSD... Warner