diff --git a/exec.c b/exec.c index 6fd66131f2..04e74d2155 100644 --- a/exec.c +++ b/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)