Better solution for the alignment problem
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4498 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4eecc06ed0
commit
c44f945a92
@ -71,7 +71,7 @@ typedef struct TCGRelocation {
|
|||||||
} TCGRelocation;
|
} TCGRelocation;
|
||||||
|
|
||||||
typedef struct TCGLabel {
|
typedef struct TCGLabel {
|
||||||
long has_value; // long instead of int to enforce alignment
|
int has_value;
|
||||||
union {
|
union {
|
||||||
tcg_target_ulong value;
|
tcg_target_ulong value;
|
||||||
TCGRelocation *first_reloc;
|
TCGRelocation *first_reloc;
|
||||||
@ -80,8 +80,8 @@ typedef struct TCGLabel {
|
|||||||
|
|
||||||
typedef struct TCGPool {
|
typedef struct TCGPool {
|
||||||
struct TCGPool *next;
|
struct TCGPool *next;
|
||||||
long size; // long instead of int to enforce alignment
|
int size;
|
||||||
uint8_t data[0];
|
uint8_t data[0] __attribute__ ((aligned));
|
||||||
} TCGPool;
|
} TCGPool;
|
||||||
|
|
||||||
#define TCG_POOL_CHUNK_SIZE 32768
|
#define TCG_POOL_CHUNK_SIZE 32768
|
||||||
|
Loading…
Reference in New Issue
Block a user