Skip to content

Fix scePowerSetClockFrequency timing by JPCSPTrace #8960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Core/HLE/scePower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static u32 scePowerSetClockFrequency(u32 pllfreq, u32 cpufreq, u32 busfreq) {
busFreq = busfreq;
INFO_LOG(HLE,"scePowerSetClockFrequency(%i,%i,%i)", pllfreq, cpufreq, busfreq);
}
return 0;
return hleDelayResult(0, "scepower set clockFrequency", 150000);
}

static u32 scePowerSetCpuClockFrequency(u32 cpufreq) {
Expand All @@ -381,7 +381,7 @@ static u32 scePowerSetCpuClockFrequency(u32 cpufreq) {
return SCE_KERNEL_ERROR_INVALID_VALUE;
}
CoreTiming::SetClockFrequencyMHz(cpufreq);
DEBUG_LOG(HLE,"scePowerSetCpuClockFrequency(%i)", cpufreq);
INFO_LOG(HLE,"scePowerSetCpuClockFrequency(%i)", cpufreq);
}
return 0;
}
Expand All @@ -397,14 +397,14 @@ static u32 scePowerSetBusClockFrequency(u32 busfreq) {
}
// TODO: It seems related to other frequencies, though.
busFreq = busfreq;
DEBUG_LOG(HLE,"scePowerSetBusClockFrequency(%i)", busfreq);
INFO_LOG(HLE,"scePowerSetBusClockFrequency(%i)", busfreq);
}
return 0;
}

static u32 scePowerGetCpuClockFrequencyInt() {
int cpuFreq = CoreTiming::GetClockFrequencyMHz();
DEBUG_LOG(HLE,"%i=scePowerGetCpuClockFrequencyInt()", cpuFreq);
INFO_LOG(HLE,"%i=scePowerGetCpuClockFrequencyInt()", cpuFreq);
return cpuFreq;
}

Expand Down