@samitouri / QOSamiQemu / commits / 015ad0261a

target/ppc: make do_ea_calc_ra available for 32 bit builds

There is no reason to keep do_ea_calc_ra exclusive to TARGET_PPC64. Make it available for PPC32 builds. Reviewed-by: Glenn Miles <milesg@linux.ibm.com> Reviewed-by: Amit Machhiwal <amachhiw@linux.ibm.com> Signed-off-by: Chinmay Rath <rathc@linux.ibm.com> Tested-by: Aniket Sahu <asahu1x@linux.ibm.com> Link: https://lore.kernel.org/qemu-devel/20260827133010.278889-23-rathc@linux.ibm.com Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>

Chinmay Rath committed Aug 27, 2026 at 18:59 UTC 015ad0261ae2b5237ff48f94c67272deac23ab99
1 file changed -2
target/ppc/translate.c
-2
@@ -2397,7 +2397,6 @@ static TCGv do_ea_calc(DisasContext *ctx, int ra, TCGv displ)
2397 return ea;
2398 }
2399
2400 -#if defined(TARGET_PPC64)
2400 /* EA <- (ra == 0) ? 0 : GPR[ra] */
2401 static TCGv do_ea_calc_ra(DisasContext *ctx, int ra)
2402 {
@@ -2411,7 +2410,6 @@ static TCGv do_ea_calc_ra(DisasContext *ctx, int ra)
2410 }
2411 return EA;
2412 }
2414 -#endif
2413
2414 /*** Integer load ***/
2415 #define DEF_MEMOP(op) ((op) | ctx->default_tcg_memop_mask)