ppcopcodes: Fix divw overflow result.

This commit is contained in:
joevt 2024-02-17 01:01:27 -08:00 committed by Maxim Poliakovski
parent 748e9c5d86
commit 5bbf5ee3af
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ void dppc_interpreter::ppc_divw() {
ppc_state.spr[SPR::XER] |= 0xC0000000;
} else if (ppc_result_a == 0x80000000UL && ppc_result_b == 0xFFFFFFFFUL) {
ppc_result_d = 0xFFFFFFFF;
ppc_result_d = 0; // tested on G4 in Mac OS X 10.4 and Open Firmware.
if (oe_flag)
ppc_state.spr[SPR::XER] |= 0xC0000000;