[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4498] Better solution for the alignment problem
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [4498] Better solution for the alignment problem |
Date: |
Mon, 19 May 2008 16:32:19 +0000 |
Revision: 4498
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4498
Author: blueswir1
Date: 2008-05-19 16:32:18 +0000 (Mon, 19 May 2008)
Log Message:
-----------
Better solution for the alignment problem
Modified Paths:
--------------
trunk/tcg/tcg.h
Modified: trunk/tcg/tcg.h
===================================================================
--- trunk/tcg/tcg.h 2008-05-18 23:39:23 UTC (rev 4497)
+++ trunk/tcg/tcg.h 2008-05-19 16:32:18 UTC (rev 4498)
@@ -71,7 +71,7 @@
} TCGRelocation;
typedef struct TCGLabel {
- long has_value; // long instead of int to enforce alignment
+ int has_value;
union {
tcg_target_ulong value;
TCGRelocation *first_reloc;
@@ -80,8 +80,8 @@
typedef struct TCGPool {
struct TCGPool *next;
- long size; // long instead of int to enforce alignment
- uint8_t data[0];
+ int size;
+ uint8_t data[0] __attribute__ ((aligned));
} TCGPool;
#define TCG_POOL_CHUNK_SIZE 32768
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [4498] Better solution for the alignment problem,
Blue Swirl <=