Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jy8Hj-0002qH-5E for qemu-devel@nongnu.org; Mon, 19 May 2008 12:32:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jy8Hi-0002pi-Jd for qemu-devel@nongnu.org; Mon, 19 May 2008 12:32:26 -0400 Received: from [199.232.76.173] (port=41730 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jy8Hi-0002pG-5B for qemu-devel@nongnu.org; Mon, 19 May 2008 12:32:26 -0400 Received: from savannah.gnu.org ([199.232.41.3]:43482 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jy8Hi-0006Vm-5q for qemu-devel@nongnu.org; Mon, 19 May 2008 12:32:26 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Jy8Hb-0001kc-Ct for qemu-devel@nongnu.org; Mon, 19 May 2008 16:32:19 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Jy8Hb-0001kY-6R for qemu-devel@nongnu.org; Mon, 19 May 2008 16:32:19 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Mon, 19 May 2008 16:32:19 +0000 Subject: [Qemu-devel] [4498] Better solution for the alignment problem 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 Revision: 4498 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4498 Author: blueswir1 Date: 2008-05-19 16:32:18 +0000 (Mon, 19 May 2008) Log Message: ----------- Better solution for the alignment problem Modified Paths: -------------- trunk/tcg/tcg.h Modified: trunk/tcg/tcg.h =================================================================== --- trunk/tcg/tcg.h 2008-05-18 23:39:23 UTC (rev 4497) +++ trunk/tcg/tcg.h 2008-05-19 16:32:18 UTC (rev 4498) @@ -71,7 +71,7 @@ } TCGRelocation; typedef struct TCGLabel { - long has_value; // long instead of int to enforce alignment + int has_value; union { tcg_target_ulong value; TCGRelocation *first_reloc; @@ -80,8 +80,8 @@ typedef struct TCGPool { struct TCGPool *next; - long size; // long instead of int to enforce alignment - uint8_t data[0]; + int size; + uint8_t data[0] __attribute__ ((aligned)); } TCGPool; #define TCG_POOL_CHUNK_SIZE 32768