mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
tcg: align static_code_gen_buffer to CODE_GEN_ALIGN
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>
This commit is contained in:
parent
903ec55cc0
commit
ebf50fb3b9
1 changed files with 2 additions and 1 deletions
3
exec.c
3
exec.c
|
@ -498,7 +498,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue