mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-25 19:40:07 +00:00
ArmDynarmic32: Setup CNTPCT correctly
This commit is contained in:
parent
e3d561fb84
commit
ec11918323
@ -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};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user