aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-08-20 15:12:31 -0700
committerRichard Henderson <rth@twiddle.net>2013-09-02 09:08:29 -0700
commite2c6d1b42d34539120c3cee159dcd9e32cba7d3b (patch)
tree9849c2496398d98b91fa1a947f7ea18fe09b3157 /tcg/tcg.c
parent8b73d49f53e1a1d1571ac783ec028ff27befd93e (diff)
downloadqemu-e2c6d1b42d34539120c3cee159dcd9e32cba7d3b.zip
qemu-e2c6d1b42d34539120c3cee159dcd9e32cba7d3b.tar.gz
qemu-e2c6d1b42d34539120c3cee159dcd9e32cba7d3b.tar.bz2
tcg: Change frame pointer offsets to intptr_t
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r--tcg/tcg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 65cffca..240e6f4 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -306,8 +306,7 @@ void tcg_prologue_init(TCGContext *s)
#endif
}
-void tcg_set_frame(TCGContext *s, int reg,
- tcg_target_long start, tcg_target_long size)
+void tcg_set_frame(TCGContext *s, int reg, intptr_t start, intptr_t size)
{
s->frame_start = start;
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_reg = s->frame_reg;
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 */