target-ppc: Fix 2nd parameter for tcg_gen_shri_tl
PATCH 1/1 target-ppc: Fix 2nd parameter for tcg_gen_shri_tl
This fixes a compiler error when QEMU was configured with --enable-debug.
Signed-off-by Stefan Weil <[email protected]>
---
Alex, please review. It fixes the compiler error, but I did the change simply by comparision with other functions, so I have no idea whether it is really correct.
Regards,
Stefan
target-ppc/translate_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target-ppc/translate_init.c +1 -1
@@ -4475,7 +4475,7 @@ static void spr_write_mas73(void *opaque, int sprn, int gprn)TCGv val =tcg_temp_new ();tcg_gen_ext32u_tl (val, cpu_gpr[gprn]);gen_store_spr (SPR_BOOKE_MAS3 , val); -tcg_gen_shri_tl (val, gprn,32 ); +tcg_gen_shri_tl (val, cpu_gpr[gprn],32 );gen_store_spr (SPR_BOOKE_MAS7 , val);tcg_temp_free (val); }
Signature · 1 line
1.7.10
Quoted 8 lines · Stefan Weil
This fixes a compiler error when QEMU was configured with --enable-debug.
Signed-off-by Stefan Weil <[email protected]>---
Alex, please review. It fixes the compiler error, but I did the change simply by comparision with other functions, so I have no idea whether it is really correct.
Looks good at a first glance, but will verify tonight. Thanks a lot for catching it!
I guess we should add an --enable-debug build to buildbot.
Alex