aboutsummaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-06-25 18:32:51 +0300
committerAvi Kivity <avi@redhat.com>2009-06-25 18:32:56 +0300
commit58a494082013aa2a4c41e486ed17e0be93a90e03 (patch)
treee6c2d99bb4fa061c692db70cad54f502d4a13e7b /exec.c
parentMerge commit '6243375f9bba12d8871ac611ca8ce947c3e16c67' into upstream-merge (diff)
parentadd sparc64-softmmu to default configure targets list (diff)
downloadqemu-kvm-58a494082013aa2a4c41e486ed17e0be93a90e03.tar.gz
qemu-kvm-58a494082013aa2a4c41e486ed17e0be93a90e03.tar.bz2
qemu-kvm-58a494082013aa2a4c41e486ed17e0be93a90e03.zip
Merge branch 'master' of git://git.sv.gnu.org/qemu into upstream-merge
* 'master' of git://git.sv.gnu.org/qemu: add sparc64-softmmu to default configure targets list sparc64 follow pci_nic_init change microblaze: Support the latest mmu-kernel stat64 ABI. target-ppc: permit linux-user to read PVR cris: Remove unused internal flag. Win32: Reduce section alignment for Windows. Win: Install keymaps for Windows, too (needed for VNC). Win32: Fix compilation with SDL. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/exec.c b/exec.c
index 299d7ff42..a745fe1e7 100644
--- a/exec.c
+++ b/exec.c
@@ -102,6 +102,10 @@ spinlock_t tb_lock = SPIN_LOCK_UNLOCKED;
#define code_gen_section \
__attribute__((__section__(".gen_code"))) \
__attribute__((aligned (32)))
+#elif defined(_WIN32)
+/* Maximum alignment for Win32 is 16. */
+#define code_gen_section \
+ __attribute__((aligned (16)))
#else
#define code_gen_section \
__attribute__((aligned (32)))