2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

ArmDynarmic32: Setup CNTPCT correctly

This commit is contained in:
Fernando Sahmkow 2020-06-18 17:47:44 -04:00
parent e3d561fb84
commit ec11918323

View file

@ -97,7 +97,7 @@ CallbackOrAccessTwoWords DynarmicCP15::CompileGetTwoWords(bool two, unsigned opc
const auto callback = static_cast<u64 (*)(Dynarmic::A32::Jit*, void*, u32, u32)>( const auto callback = static_cast<u64 (*)(Dynarmic::A32::Jit*, void*, u32, u32)>(
[](Dynarmic::A32::Jit*, void* arg, u32, u32) -> u64 { [](Dynarmic::A32::Jit*, void* arg, u32, u32) -> u64 {
ARM_Dynarmic_32& parent = *(ARM_Dynarmic_32*)arg; ARM_Dynarmic_32& parent = *(ARM_Dynarmic_32*)arg;
return Timing::CpuCyclesToClockCycles(parent.system.CoreTiming().GetTicks()); return parent.system.CoreTiming().GetClockTicks();
}); });
return Dynarmic::A32::Coprocessor::Callback{callback, (void*)&parent}; return Dynarmic::A32::Coprocessor::Callback{callback, (void*)&parent};
} }