mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-09 21:31:24 +00:00
ppcfpopcodes: Fix fdiv for MPC601.
This commit is contained in:
parent
b45b0a8df4
commit
bce4c98475
@ -232,7 +232,15 @@ template <field_rc rec>
|
||||
void dppc_interpreter::ppc_fdiv(uint32_t opcode) {
|
||||
ppc_grab_regsfpdab(opcode);
|
||||
|
||||
double ppc_dblresult64_d = val_reg_a / val_reg_b;
|
||||
double ppc_dblresult64_d;
|
||||
|
||||
if (is_601 && FPR_INT(reg_b) == 0x8000000000000000 && val_reg_a > 0) {
|
||||
ppc_dblresult64_d = val_reg_b;
|
||||
fpresult_update(ppc_dblresult64_d);
|
||||
return;
|
||||
}
|
||||
|
||||
ppc_dblresult64_d = val_reg_a / val_reg_b;
|
||||
|
||||
if (val_reg_b == 0.0) {
|
||||
ppc_state.fpscr |= 0xa0000000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user