aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-18 07:49:05 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-18 07:49:05 +0000
commitd4929d58a16ee67925d6962e0f5294f12c598562 (patch)
tree294f60c590edfdf2188ef6d78321a58e9a8bf2e3 /tcg/tcg.h
parentc9e1e2b0ac300d0c2abd6d1f38207b7749b40b49 (diff)
downloadqemu-d4929d58a16ee67925d6962e0f5294f12c598562.zip
qemu-d4929d58a16ee67925d6962e0f5294f12c598562.tar.gz
qemu-d4929d58a16ee67925d6962e0f5294f12c598562.tar.bz2
Fix TCG alignment problems on Sparc64 host
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4485 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r--tcg/tcg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 1b85467..bca9a2c 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -71,7 +71,7 @@ typedef struct TCGRelocation {
} TCGRelocation;
typedef struct TCGLabel {
- int has_value;
+ long has_value; // long instead of int to enforce alignment
union {
tcg_target_ulong value;
TCGRelocation *first_reloc;
@@ -80,7 +80,7 @@ typedef struct TCGLabel {
typedef struct TCGPool {
struct TCGPool *next;
- int size;
+ long size; // long instead of int to enforce alignment
uint8_t data[0];
} TCGPool;