aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-06-17 17:02:20 -0700
committerRichard Henderson <rth@twiddle.net>2016-07-05 20:50:12 -0700
commit120c1084ed53ba2967ba2a6e751cdfb00a17c246 (patch)
tree66e7bbc876da5d2442ddd6587cf75cb8c853ab00 /tcg
parent5f6f0e27fb242fe985591b16ad604ac52822a0dd (diff)
tcg: Fix name for high-half register
Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 254427b1b7..154ffe801c 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;