提交 d4929d58 编写于 作者: B blueswir1

Fix TCG alignment problems on Sparc64 host

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4485 c046a42c-6fe2-441c-8c8c-71466251a162
上级 c9e1e2b0
...@@ -71,7 +71,7 @@ typedef struct TCGRelocation { ...@@ -71,7 +71,7 @@ typedef struct TCGRelocation {
} TCGRelocation; } TCGRelocation;
typedef struct TCGLabel { typedef struct TCGLabel {
int has_value; long has_value; // long instead of int to enforce alignment
union { union {
tcg_target_ulong value; tcg_target_ulong value;
TCGRelocation *first_reloc; TCGRelocation *first_reloc;
...@@ -80,7 +80,7 @@ typedef struct TCGLabel { ...@@ -80,7 +80,7 @@ typedef struct TCGLabel {
typedef struct TCGPool { typedef struct TCGPool {
struct TCGPool *next; struct TCGPool *next;
int size; long size; // long instead of int to enforce alignment
uint8_t data[0]; uint8_t data[0];
} TCGPool; } TCGPool;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册