From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nw2o3-0004r3-Se for qemu-devel@nongnu.org; Sun, 28 Mar 2010 20:26:15 -0400 Received: from [140.186.70.92] (port=47806 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nw2o2-0004q3-Cz for qemu-devel@nongnu.org; Sun, 28 Mar 2010 20:26:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nw2nx-00027g-Jm for qemu-devel@nongnu.org; Sun, 28 Mar 2010 20:26:14 -0400 Received: from hall.aurel32.net ([88.191.82.174]:38842) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw2nx-00027c-Cc for qemu-devel@nongnu.org; Sun, 28 Mar 2010 20:26:09 -0400 From: Aurelien Jarno Date: Mon, 29 Mar 2010 02:25:53 +0200 Message-Id: <1269822354-4878-5-git-send-email-aurelien@aurel32.net> In-Reply-To: <1269822354-4878-1-git-send-email-aurelien@aurel32.net> References: <1269822354-4878-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 4/5] tcg: align static_code_gen_buffer to CODE_GEN_ALIGN List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno 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 --- 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