On Fri, Jun 17, 2016 at 10:03:26PM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson <r...@twiddle.net> Reviewed-by: David Gibson <da...@gibson.dropbear.id.au>
> --- > tcg/tcg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tcg/tcg.c b/tcg/tcg.c > index 254427b..154ffe8 100644 > --- a/tcg/tcg.c > +++ b/tcg/tcg.c > @@ -557,7 +557,7 @@ int tcg_global_mem_new_internal(TCGType type, TCGv_ptr > base, > ts2->mem_offset = offset + (1 - bigendian) * 4; > pstrcpy(buf, sizeof(buf), name); > pstrcat(buf, sizeof(buf), "_1"); > - ts->name = strdup(buf); > + ts2->name = strdup(buf); > } else { > ts->base_type = type; > ts->type = type; -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature