mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-08 20:58:41 +00:00
Return CPU mode based on param.sfo attributes (#3846)
Values are based on hardware observations.
This commit is contained in:
@@ -42,6 +42,16 @@ s32 PS4_SYSV_ABI sceKernelGetCompiledSdkVersion(s32* ver) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s32 PS4_SYSV_ABI sceKernelGetCpumode() {
|
s32 PS4_SYSV_ABI sceKernelGetCpumode() {
|
||||||
|
LOG_DEBUG(Lib_Kernel, "called");
|
||||||
|
auto& attrs = Common::ElfInfo::Instance().GetPSFAttributes();
|
||||||
|
u32 is_cpu6 = attrs.six_cpu_mode.Value();
|
||||||
|
u32 is_cpu7 = attrs.seven_cpu_mode.Value();
|
||||||
|
if (is_cpu6 == 1 && is_cpu7 == 1) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
if (is_cpu7 == 1) {
|
||||||
|
return 5;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user