On 28 April 2014 20:28, Richard Henderson <r...@twiddle.net> wrote: > And use tcg pointer differencing functions as appropriate. > > Cc: Stefan Weil <s...@weilnetz.de> > Signed-off-by: Richard Henderson <r...@twiddle.net> > --- > tcg/tci/tcg-target.c | 19 +++++++++++++------ > tcg/tci/tcg-target.h | 1 + > 2 files changed, 14 insertions(+), 6 deletions(-)
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> though I note there are a number of functions that use the pattern uint8_t *old_code_ptr = s->code_ptr; [...emit stuff...] old_code_ptr[1] = s->code_ptr - old_code_ptr; which could perhaps use tcg_insn_unit * rather than uint8_t * ? thanks -- PMM