Core Timing: Rework Core Timing to run all cores evenly.

This commit is contained in:
Fernando Sahmkow 2019-09-09 21:37:29 -04:00 committed by FernandoS27
parent f9b784f1a6
commit 93a18da674
6 changed files with 89 additions and 38 deletions

View file

@ -156,7 +156,7 @@ void ARM_Unicorn::Run() {
if (GDBStub::IsServerEnabled()) {
ExecuteInstructions(std::max(4000000, 0));
} else {
ExecuteInstructions(std::max(system.CoreTiming().GetDowncount(), 0));
ExecuteInstructions(std::max<s64>(system.CoreTiming().GetDowncount(), 0LL));
}
}