[4498] Better solution for the alignment problem
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
===================================================================
tcg/tcg.h +3 -3
@@ -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