Commit d4929d58a16ee67925d6962e0f5294f12c598562

Authored by blueswir1
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,7 +71,7 @@ typedef struct TCGRelocation {
71 } TCGRelocation; 71 } TCGRelocation;
72 72
73 typedef struct TCGLabel { 73 typedef struct TCGLabel {
74 - int has_value; 74 + long has_value; // long instead of int to enforce alignment
75 union { 75 union {
76 tcg_target_ulong value; 76 tcg_target_ulong value;
77 TCGRelocation *first_reloc; 77 TCGRelocation *first_reloc;
@@ -80,7 +80,7 @@ typedef struct TCGLabel { @@ -80,7 +80,7 @@ typedef struct TCGLabel {
80 80
81 typedef struct TCGPool { 81 typedef struct TCGPool {
82 struct TCGPool *next; 82 struct TCGPool *next;
83 - int size; 83 + long size; // long instead of int to enforce alignment
84 uint8_t data[0]; 84 uint8_t data[0];
85 } TCGPool; 85 } TCGPool;
86 86