mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-27 17:39:34 -06:00
PowerPC: Add missing SDRUpdated/MSRUpdated calls
This commit is contained in:
@ -447,9 +447,15 @@ void Expression::SynchronizeBindings(Core::System& system, SynchronizeDirection
|
||||
break;
|
||||
case VarBindingType::SPR:
|
||||
if (dir == SynchronizeDirection::From)
|
||||
{
|
||||
v->value = static_cast<double>(ppc_state.spr[bind->index]);
|
||||
}
|
||||
else
|
||||
{
|
||||
ppc_state.spr[bind->index] = static_cast<u32>(static_cast<s64>(v->value));
|
||||
if (bind->index == SPR_SDR)
|
||||
system.GetMMU().SDRUpdated();
|
||||
}
|
||||
break;
|
||||
case VarBindingType::PCtr:
|
||||
if (dir == SynchronizeDirection::From)
|
||||
@ -457,9 +463,14 @@ void Expression::SynchronizeBindings(Core::System& system, SynchronizeDirection
|
||||
break;
|
||||
case VarBindingType::MSR:
|
||||
if (dir == SynchronizeDirection::From)
|
||||
{
|
||||
v->value = static_cast<double>(ppc_state.msr.Hex);
|
||||
}
|
||||
else
|
||||
{
|
||||
ppc_state.msr.Hex = static_cast<u32>(static_cast<s64>(v->value));
|
||||
PowerPC::MSRUpdated(ppc_state);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -684,6 +684,7 @@ static void WriteRegister()
|
||||
break;
|
||||
case 104:
|
||||
ppc_state.spr[SPR_SDR] = re32hex(bufptr);
|
||||
system.GetMMU().SDRUpdated();
|
||||
break;
|
||||
case 105:
|
||||
ppc_state.spr[SPR_ASR] = re64hex(bufptr);
|
||||
|
Reference in New Issue
Block a user