Received: from eggs.gnu.org ([2001:4830:134:3::10]:35188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEzrO-00021v-5b for qemu-devel@nongnu.org; Thu, 29 Aug 2013 06:53:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEzrJ-0002y4-BX for qemu-devel@nongnu.org; Thu, 29 Aug 2013 06:53:54 -0400 Received: from hall.aurel32.net ([2001:470:1f0b:4a8::1]:37964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEzrJ-0002xw-4y for qemu-devel@nongnu.org; Thu, 29 Aug 2013 06:53:49 -0400 Date: Thu, 29 Aug 2013 12:53:42 +0200 From: Aurelien Jarno Message-ID: <20130829105342.GK5908@ohm.aurel32.net> References: <1377190729-14008-1-git-send-email-rth@twiddle.net> <1377190729-14008-8-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1377190729-14008-8-git-send-email-rth@twiddle.net> Subject: Re: [Qemu-devel] [PATCH 07/18] tcg: Change frame pointer offsets to intptr_t List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Thu, Aug 22, 2013 at 09:58:38AM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/tcg.c | 5 ++--- > tcg/tcg.h | 9 ++++----- > 2 files changed, 6 insertions(+), 8 deletions(-) > > diff --git a/tcg/tcg.c b/tcg/tcg.c > index a0d0e9e..c23b23c 100644 > --- a/tcg/tcg.c > +++ b/tcg/tcg.c > @@ -297,8 +297,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; > @@ -1580,7 +1579,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 */ > diff --git a/tcg/tcg.h b/tcg/tcg.h > index 8353ba1..6fb2126 100644 > --- a/tcg/tcg.h > +++ b/tcg/tcg.h > @@ -430,9 +430,9 @@ struct TCGContext { > into account fixed registers */ > int reg_to_temp[TCG_TARGET_NB_REGS]; > TCGRegSet reserved_regs; > - tcg_target_long current_frame_offset; > - tcg_target_long frame_start; > - tcg_target_long frame_end; > + intptr_t current_frame_offset; > + intptr_t frame_start; > + intptr_t frame_end; > int frame_reg; > > uint8_t *code_ptr; > @@ -525,8 +525,7 @@ void tcg_func_start(TCGContext *s); > 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); > > -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); > > 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, > -- > 1.8.1.4 > > > Reviewed-by: Aurelien Jarno -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net