From e67d5998b3c7431667c081e8d4c614a60aced7a5 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sat, 2 Aug 2025 11:36:35 -0600 Subject: [PATCH] Enable PS instructions for any 32-bit PPC ELF Fixes an issue where ProDG for GameCube objects were not enabling PS instruction support. --- objdiff-core/src/arch/ppc/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/objdiff-core/src/arch/ppc/mod.rs b/objdiff-core/src/arch/ppc/mod.rs index b2da3f8..4e85099 100644 --- a/objdiff-core/src/arch/ppc/mod.rs +++ b/objdiff-core/src/arch/ppc/mod.rs @@ -66,7 +66,9 @@ impl ArchPpc { if file.is_64() { powerpc::Extension::Ppc64 | powerpc::Extension::AltiVec } else { - powerpc::Extension::AltiVec.into() + // Gekko/Broadway objects often use the EF_PPC_EMB flag, + // but ProDG in particular does not emit it. + powerpc::Extensions::gekko_broadway() } } };