tcg: Fix name for high-half register
authorRichard Henderson <rth@twiddle.net>
Sat, 18 Jun 2016 00:02:20 +0000 (17:02 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 6 Jul 2016 03:50:12 +0000 (20:50 -0700)
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.c

index 254427b1b7e0d1d7a66b01fe351cf6c574116c89..154ffe801cb9b11e23cb91df43901a1618f666fd 100644 (file)
--- 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;