tcg: Fix name for high-half register

This commit is contained in:
Richard Henderson 2018-02-25 01:36:26 -05:00 committed by Lioncash
parent 532f840dc3
commit 64fda683b1
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -539,7 +539,7 @@ int tcg_global_mem_new_internal(TCGContext *s, TCGType type, TCGv_ptr base,
ts->mem_offset = offset + bigendian * 4;
pstrcpy(buf, sizeof(buf), name);
pstrcat(buf, sizeof(buf), "_0");
ts->name = g_strdup(buf);
ts->name = strdup(buf);
tcg_debug_assert(ts2 == ts + 1);
ts2->base_type = TCG_TYPE_I64;
@ -550,7 +550,7 @@ int tcg_global_mem_new_internal(TCGContext *s, TCGType type, TCGv_ptr base,
ts2->mem_offset = offset + (1 - bigendian) * 4;
pstrcpy(buf, sizeof(buf), name);
pstrcat(buf, sizeof(buf), "_1");
ts->name = g_strdup(buf);
ts2->name = g_strdup(buf);
} else {
ts->base_type = type;
ts->type = type;