summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <david.gilbert@linaro.org>2011-12-12 16:37:31 +0100
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-12-14 21:58:18 +0100
commit222f23f508a8d778f56eddef14752dfd26d225b4 (patch)
treec6a8387c390e80715bbd3bd6f1e92e2d1215915f /exec.c
parent23ce84b1bbae9dd244ad8cd77a1ac30fdac07606 (diff)
downloadqemu-222f23f508a8d778f56eddef14752dfd26d225b4.tar.gz
tcg/arm: remove fixed map code buffer restriction
On ARM, don't map the code buffer at a fixed location, and fix up the call/goto tcg routines to let it do long jumps. Mapping the code buffer at a fixed address could sometimes result in it being mapped over the top of the heap with pretty random results. Signed-off-by: Dr. David Alan Gilbert <david.gilbert@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/exec.c b/exec.c
index d8b2180170..4f79cbb27e 100644
--- a/exec.c
+++ b/exec.c
@@ -497,9 +497,7 @@ static void code_gen_alloc(unsigned long tb_size)
if (code_gen_buffer_size > (512 * 1024 * 1024))
code_gen_buffer_size = (512 * 1024 * 1024);
#elif defined(__arm__)
- /* Map the buffer below 32M, so we can use direct calls and branches */
- flags |= MAP_FIXED;
- start = (void *) 0x01000000UL;
+ /* Keep the buffer no bigger than 16GB to branch between blocks */
if (code_gen_buffer_size > 16 * 1024 * 1024)
code_gen_buffer_size = 16 * 1024 * 1024;
#elif defined(__s390x__)