mirror of https://github.com/xemu-project/xemu.git
tcg: Change frame pointer offsets to intptr_t
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
8b73d49f53
commit
e2c6d1b42d
|
@ -306,8 +306,7 @@ void tcg_prologue_init(TCGContext *s)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void tcg_set_frame(TCGContext *s, int reg,
|
void tcg_set_frame(TCGContext *s, int reg, intptr_t start, intptr_t size)
|
||||||
tcg_target_long start, tcg_target_long size)
|
|
||||||
{
|
{
|
||||||
s->frame_start = start;
|
s->frame_start = start;
|
||||||
s->frame_end = start + size;
|
s->frame_end = start + size;
|
||||||
|
@ -1613,7 +1612,7 @@ static void temp_allocate_frame(TCGContext *s, int temp)
|
||||||
ts->mem_offset = s->current_frame_offset;
|
ts->mem_offset = s->current_frame_offset;
|
||||||
ts->mem_reg = s->frame_reg;
|
ts->mem_reg = s->frame_reg;
|
||||||
ts->mem_allocated = 1;
|
ts->mem_allocated = 1;
|
||||||
s->current_frame_offset += (tcg_target_long)sizeof(tcg_target_long);
|
s->current_frame_offset += sizeof(tcg_target_long);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sync register 'reg' by saving it to the corresponding temporary */
|
/* sync register 'reg' by saving it to the corresponding temporary */
|
||||||
|
|
|
@ -435,9 +435,9 @@ struct TCGContext {
|
||||||
into account fixed registers */
|
into account fixed registers */
|
||||||
int reg_to_temp[TCG_TARGET_NB_REGS];
|
int reg_to_temp[TCG_TARGET_NB_REGS];
|
||||||
TCGRegSet reserved_regs;
|
TCGRegSet reserved_regs;
|
||||||
tcg_target_long current_frame_offset;
|
intptr_t current_frame_offset;
|
||||||
tcg_target_long frame_start;
|
intptr_t frame_start;
|
||||||
tcg_target_long frame_end;
|
intptr_t frame_end;
|
||||||
int frame_reg;
|
int frame_reg;
|
||||||
|
|
||||||
uint8_t *code_ptr;
|
uint8_t *code_ptr;
|
||||||
|
@ -530,8 +530,7 @@ void tcg_func_start(TCGContext *s);
|
||||||
int tcg_gen_code(TCGContext *s, uint8_t *gen_code_buf);
|
int tcg_gen_code(TCGContext *s, uint8_t *gen_code_buf);
|
||||||
int tcg_gen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf, long offset);
|
int tcg_gen_code_search_pc(TCGContext *s, uint8_t *gen_code_buf, long offset);
|
||||||
|
|
||||||
void tcg_set_frame(TCGContext *s, int reg,
|
void tcg_set_frame(TCGContext *s, int reg, intptr_t start, intptr_t size);
|
||||||
tcg_target_long start, tcg_target_long size);
|
|
||||||
|
|
||||||
TCGv_i32 tcg_global_reg_new_i32(int reg, const char *name);
|
TCGv_i32 tcg_global_reg_new_i32(int reg, const char *name);
|
||||||
TCGv_i32 tcg_global_mem_new_i32(int reg, tcg_target_long offset,
|
TCGv_i32 tcg_global_mem_new_i32(int reg, tcg_target_long offset,
|
||||||
|
|
Loading…
Reference in New Issue