qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Cc: Aurelien Jarno <aurelien@aurel32.net>
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	[thread overview]
Message-ID: <1269822354-4878-5-git-send-email-aurelien@aurel32.net> (raw)
In-Reply-To: <1269822354-4878-1-git-send-email-aurelien@aurel32.net>

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 <aurelien@aurel32.net>
---
 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

  parent reply	other threads:[~2010-03-29  0:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29  0:25 [Qemu-devel] ia64 support Aurelien Jarno
2010-03-29  0:25 ` [Qemu-devel] [PATCH 1/5] linux-user/ia64: workaround ia64 strangenesses Aurelien Jarno
2010-03-29  9:36   ` [Qemu-devel] " Paolo Bonzini
2010-03-29 16:25     ` Aurelien Jarno
2010-03-30  0:00       ` Jamie Lokier
2010-03-30  5:04         ` Aurelien Jarno
2010-03-29  0:25 ` [Qemu-devel] [PATCH 2/5] linux-user: fix page_unprotect when host page size > target page size Aurelien Jarno
2010-03-29  0:25 ` Aurelien Jarno [this message]
2010-03-29  0:25 ` [Qemu-devel] [PATCH 5/5] tcg: initial ia64 support Aurelien Jarno
2010-03-29  0:35 ` [Qemu-devel] [PATCH 3/5] ia64 disas support Aurelien Jarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1269822354-4878-5-git-send-email-aurelien@aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).