Commit c44f945a9275ac0ebc7922da085d49389ba9d70a
1 parent
4eecc06e
Better solution for the alignment problem
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4498 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
tcg/tcg.h
| ... | ... | @@ -71,7 +71,7 @@ typedef struct TCGRelocation { |
| 71 | 71 | } TCGRelocation; |
| 72 | 72 | |
| 73 | 73 | typedef struct TCGLabel { |
| 74 | - long has_value; // long instead of int to enforce alignment | |
| 74 | + int has_value; | |
| 75 | 75 | union { |
| 76 | 76 | tcg_target_ulong value; |
| 77 | 77 | TCGRelocation *first_reloc; |
| ... | ... | @@ -80,8 +80,8 @@ typedef struct TCGLabel { |
| 80 | 80 | |
| 81 | 81 | typedef struct TCGPool { |
| 82 | 82 | struct TCGPool *next; |
| 83 | - long size; // long instead of int to enforce alignment | |
| 84 | - uint8_t data[0]; | |
| 83 | + int size; | |
| 84 | + uint8_t data[0] __attribute__ ((aligned)); | |
| 85 | 85 | } TCGPool; |
| 86 | 86 | |
| 87 | 87 | #define TCG_POOL_CHUNK_SIZE 32768 | ... | ... |