Core Timing: Rework Core Timing to run all cores evenly.
This commit is contained in:
parent
e664c24355
commit
555866f8dc
6 changed files with 89 additions and 38 deletions
|
@ -116,7 +116,7 @@ public:
|
|||
num_interpreted_instructions = 0;
|
||||
}
|
||||
u64 GetTicksRemaining() override {
|
||||
return std::max(parent.system.CoreTiming().GetDowncount(), 0);
|
||||
return std::max<s64>(parent.system.CoreTiming().GetDowncount(), 0LL);
|
||||
}
|
||||
u64 GetCNTPCT() override {
|
||||
return Timing::CpuCyclesToClockCycles(parent.system.CoreTiming().GetTicks());
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue