diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-10-19 11:26:37 +1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-01-05 11:41:28 -0800 |
commit | fac87bd2a49bf16edeb1d2823a993ad7c9ed073b (patch) | |
tree | 556de45a7bc4f1272965e0cbacb47e9c27790dec /tcg/tcg.c | |
parent | d56fea79f9d24c62b0a8c3a80924147942409258 (diff) | |
download | qemu-fac87bd2a49bf16edeb1d2823a993ad7c9ed073b.zip qemu-fac87bd2a49bf16edeb1d2823a993ad7c9ed073b.tar.gz qemu-fac87bd2a49bf16edeb1d2823a993ad7c9ed073b.tar.bz2 |
tcg: Add temp_subindex to TCGTemp
Record the location of a TCGTemp within a larger object.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -928,6 +928,7 @@ TCGTemp *tcg_global_mem_new_internal(TCGType type, TCGv_ptr base, ts2->mem_allocated = 1; ts2->mem_base = base_ts; ts2->mem_offset = offset + (1 - bigendian) * 4; + ts2->temp_subindex = 1; pstrcpy(buf, sizeof(buf), name); pstrcat(buf, sizeof(buf), "_1"); ts2->name = strdup(buf); @@ -974,6 +975,7 @@ TCGTemp *tcg_temp_new_internal(TCGType type, bool temp_local) ts2->base_type = TCG_TYPE_I64; ts2->type = TCG_TYPE_I32; ts2->temp_allocated = 1; + ts2->temp_subindex = 1; ts2->kind = kind; } else { ts->base_type = type; @@ -1092,6 +1094,7 @@ TCGTemp *tcg_constant_internal(TCGType type, int64_t val) ts2->type = TCG_TYPE_I32; ts2->kind = TEMP_CONST; ts2->temp_allocated = 1; + ts2->temp_subindex = 1; ts2->val = val >> 32; } else { ts->base_type = type; |