tcg: Use tcg_constant_ptr in do_dup
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
5dd48602ff
commit
e198641015
@ -629,7 +629,7 @@ static void do_dup(unsigned vece, uint32_t dofs, uint32_t oprsz,
|
|||||||
* stores through to memset.
|
* stores through to memset.
|
||||||
*/
|
*/
|
||||||
if (oprsz == maxsz && vece == MO_8) {
|
if (oprsz == maxsz && vece == MO_8) {
|
||||||
TCGv_ptr t_size = tcg_const_ptr(oprsz);
|
TCGv_ptr t_size = tcg_constant_ptr(oprsz);
|
||||||
TCGv_i32 t_val;
|
TCGv_i32 t_val;
|
||||||
|
|
||||||
if (in_32) {
|
if (in_32) {
|
||||||
@ -645,7 +645,6 @@ static void do_dup(unsigned vece, uint32_t dofs, uint32_t oprsz,
|
|||||||
if (in_64) {
|
if (in_64) {
|
||||||
tcg_temp_free_i32(t_val);
|
tcg_temp_free_i32(t_val);
|
||||||
}
|
}
|
||||||
tcg_temp_free_ptr(t_size);
|
|
||||||
tcg_temp_free_ptr(t_ptr);
|
tcg_temp_free_ptr(t_ptr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user