Commit d4929d58a16ee67925d6962e0f5294f12c598562
1 parent
c9e1e2b0
Fix TCG alignment problems on Sparc64 host
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4485 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
tcg/tcg.h
| ... | ... | @@ -71,7 +71,7 @@ typedef struct TCGRelocation { |
| 71 | 71 | } TCGRelocation; |
| 72 | 72 | |
| 73 | 73 | typedef struct TCGLabel { |
| 74 | - int has_value; | |
| 74 | + long has_value; // long instead of int to enforce alignment | |
| 75 | 75 | union { |
| 76 | 76 | tcg_target_ulong value; |
| 77 | 77 | TCGRelocation *first_reloc; |
| ... | ... | @@ -80,7 +80,7 @@ typedef struct TCGLabel { |
| 80 | 80 | |
| 81 | 81 | typedef struct TCGPool { |
| 82 | 82 | struct TCGPool *next; |
| 83 | - int size; | |
| 83 | + long size; // long instead of int to enforce alignment | |
| 84 | 84 | uint8_t data[0]; |
| 85 | 85 | } TCGPool; |
| 86 | 86 | ... | ... |