target/hppa: Expand tcg_global_mem_new() -> tcg_global_mem_new_i64()
PATCH 1/1 target/hppa: Expand tcg_global_mem_new() -> tcg_global_mem_new_i64()
The HPPA target is a 64-bit one, so tcg_global_mem_new() expands to tcg_global_mem_new_i64(). Use the latter which is more explicit.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- target/hppa/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
target/hppa/translate.c +4 -4
@@ -307,9 +307,9 @@ void hppa_translate_init(void) cpu_gr[0 ] =NULL ;for (i =1 ; i <32 ; i++) { - cpu_gr[i] =tcg_global_mem_new (tcg_env, - offsetof(CPUHPPAState, gr[i]), - gr_names[i]); + cpu_gr[i] =tcg_global_mem_new_i64 (tcg_env, + offsetof(CPUHPPAState, gr[i]), + gr_names[i]); }for (i =0 ; i <4 ; i++) { cpu_sr[i] = tcg_global_mem_new_i64(tcg_env,
@@ -322,7 +322,7 @@ void hppa_translate_init(void)for (i =0 ; i <ARRAY_SIZE (vars); ++i) {const GlobalVar *v = &vars[i]; - *v->var =tcg_global_mem_new (tcg_env, v->ofs, v->name); + *v->var =tcg_global_mem_new_i64 (tcg_env, v->ofs, v->name); } cpu_psw_xb = tcg_global_mem_new_i32(tcg_env,
Signature · 1 line
2.52.0
ping?
Quoted 35 lines · Philippe Mathieu-Daudé
The HPPA target is a 64-bit one, so
tcg_global_mem_new()expands totcg_global_mem_new_i64(). Use the latter which is more explicit.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/hppa/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)target/hppa/translate.c +4
-4@@ -307,9 +307,9 @@ void hppa_translate_init(void) cpu_gr[0 ] =NULL ;for (i =1 ; i <32 ; i++) { - cpu_gr[i] =tcg_global_mem_new (tcg_env, - offsetof(CPUHPPAState, gr[i]), - gr_names[i]); + cpu_gr[i] =tcg_global_mem_new_i64 (tcg_env, + offsetof(CPUHPPAState, gr[i]), + gr_names[i]); }for (i =0 ; i <4 ; i++) { cpu_sr[i] = tcg_global_mem_new_i64(tcg_env,@@ -322,7 +322,7 @@ void hppa_translate_init(void)for (i =0 ; i <ARRAY_SIZE (vars); ++i) {const GlobalVar *v = &vars[i]; - *v->var =tcg_global_mem_new (tcg_env, v->ofs, v->name); + *v->var =tcg_global_mem_new_i64 (tcg_env, v->ofs, v->name); } cpu_psw_xb = tcg_global_mem_new_i32(tcg_env,
Quoted 27 lines · Philippe Mathieu-Daudé
The HPPA target is a 64-bit one, so
tcg_global_mem_new()expands totcg_global_mem_new_i64(). Use the latter which is more explicit.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/hppa/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)target/hppa/translate.c +3
-3@@ -307,9 +307,9 @@ void hppa_translate_init(void) cpu_gr[0 ] =NULL ;for (i =1 ; i <32 ; i++) { - cpu_gr[i] =tcg_global_mem_new (tcg_env, - offsetof(CPUHPPAState, gr[i]), - gr_names[i]); + cpu_gr[i] =tcg_global_mem_new_i64 (tcg_env, + offsetof(CPUHPPAState, gr[i]), + gr_names[i]); }for (i =0 ; i <4 ; i++) { cpu_sr[i] = tcg_global_mem_new_i64(tcg_env,
target/hppa/translate.c void hppa_translate_init(void) · line 328
Quoted 8 lines
target/hppa/translate.c +1
-1@@ -322,7 +322,7 @@ void hppa_translate_init(void)for (i =0 ; i <ARRAY_SIZE (vars); ++i) {const GlobalVar *v = &vars[i]; - *v->var =tcg_global_mem_new (tcg_env, v->ofs, v->name); + *v->var =tcg_global_mem_new_i64 (tcg_env, v->ofs, v->name); } cpu_psw_xb = tcg_global_mem_new_i32(tcg_env,
Reviewed-by Richard Henderson <[email protected]>
r~
Quoted 8 lines · Philippe Mathieu-Daudé
The HPPA target is a 64-bit one, so
tcg_global_mem_new()expands totcg_global_mem_new_i64(). Use the latter which is more explicit.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/hppa/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Patch queued.