diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-19 16:32:18 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-19 16:32:18 +0000 |
commit | c44f945a9275ac0ebc7922da085d49389ba9d70a (patch) | |
tree | fa560830127caec5c534c880043ec26e6fa01efc /tcg | |
parent | 4eecc06ed04ee1aaa6f1cb2280c29c9a8e889c17 (diff) | |
download | qemu-c44f945a9275ac0ebc7922da085d49389ba9d70a.tar.gz qemu-c44f945a9275ac0ebc7922da085d49389ba9d70a.tar.bz2 qemu-c44f945a9275ac0ebc7922da085d49389ba9d70a.zip |
Better solution for the alignment problem
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4498 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -71,7 +71,7 @@ typedef struct TCGRelocation { } 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 TCGLabel { 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 |