qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/5] tcg: align static_code_gen_buffer to CODE_GEN_A


From: Aurelien Jarno
Subject: [Qemu-devel] [PATCH 4/5] tcg: align static_code_gen_buffer to CODE_GEN_ALIGN
Date: Mon, 29 Mar 2010 02:25:53 +0200

On ia64, the default memory alignement is not enough for a code
alignement. To fix that, force static_code_gen_buffer alignment
to CODE_GEN_ALIGN.

Signed-off-by: Aurelien Jarno <address@hidden>
---
 exec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/exec.c b/exec.c
index 1b0fe52..5c13524 100644
--- a/exec.c
+++ b/exec.c
@@ -447,7 +447,8 @@ static void tlb_unprotect_code_phys(CPUState *env, 
ram_addr_t ram_addr,
 #endif
 
 #ifdef USE_STATIC_CODE_GEN_BUFFER
-static uint8_t static_code_gen_buffer[DEFAULT_CODE_GEN_BUFFER_SIZE];
+static uint8_t static_code_gen_buffer[DEFAULT_CODE_GEN_BUFFER_SIZE]
+               __attribute__((aligned (CODE_GEN_ALIGN)));
 #endif
 
 static void code_gen_alloc(unsigned long tb_size)
-- 
1.7.0.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]