diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-02-25 11:22:38 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-13 07:03:39 -0700 |
commit | d6840b98787dc2a5ac2dbf687a944da2f832b02d (patch) | |
tree | 9203d5e8524edb88b2929118834f5e07bad29bd1 /target/arm | |
parent | 3351889caa8ff6d9bba2042597d79b191d01d151 (diff) | |
download | qemu-d6840b98787dc2a5ac2dbf687a944da2f832b02d.zip qemu-d6840b98787dc2a5ac2dbf687a944da2f832b02d.tar.gz qemu-d6840b98787dc2a5ac2dbf687a944da2f832b02d.tar.bz2 |
target/arm: Avoid tcg_const_ptr in gen_sve_{ldr,str}
This hides the implicit initialization of a variable.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/arm')
-rw-r--r-- | target/arm/tcg/translate-sve.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target/arm/tcg/translate-sve.c b/target/arm/tcg/translate-sve.c index 3ca60fb..92ab290 100644 --- a/target/arm/tcg/translate-sve.c +++ b/target/arm/tcg/translate-sve.c @@ -4206,8 +4206,9 @@ void gen_sve_ldr(DisasContext *s, TCGv_ptr base, int vofs, } } else { TCGLabel *loop = gen_new_label(); - TCGv_ptr tp, i = tcg_const_ptr(0); + TCGv_ptr tp, i = tcg_temp_new_ptr(); + tcg_gen_movi_ptr(i, 0); gen_set_label(loop); t0 = tcg_temp_new_i64(); @@ -4284,8 +4285,9 @@ void gen_sve_str(DisasContext *s, TCGv_ptr base, int vofs, } } else { TCGLabel *loop = gen_new_label(); - TCGv_ptr tp, i = tcg_const_ptr(0); + TCGv_ptr tp, i = tcg_temp_new_ptr(); + tcg_gen_movi_ptr(i, 0); gen_set_label(loop); t0 = tcg_temp_new_i64(); |