mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
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>
This commit is contained in:
parent
23ce84b1bb
commit
222f23f508
2 changed files with 13 additions and 22 deletions
4
exec.c
4
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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue