From ef8522e1015738f5f7a22eb306386ceb3ef013d4 Mon Sep 17 00:00:00 2001 From: joevt Date: Tue, 9 Apr 2024 01:58:55 -0700 Subject: [PATCH] poweropcodes: Fix maskg. The condition code register depends on rA, not rD since rA contains the result. --- cpu/ppc/poweropcodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/ppc/poweropcodes.cpp b/cpu/ppc/poweropcodes.cpp index b6cd798..df43d48 100644 --- a/cpu/ppc/poweropcodes.cpp +++ b/cpu/ppc/poweropcodes.cpp @@ -281,7 +281,7 @@ void dppc_interpreter::power_maskg() { ppc_result_a = insert_mask; if (rec) - ppc_changecrf0(ppc_result_d); + ppc_changecrf0(ppc_result_a); ppc_store_iresult_reg(reg_a, ppc_result_a); }