summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-04-07 06:35:47 +0200
committerLioncash <mathew1800@gmail.com>2021-04-07 06:35:49 +0200
commit03dda80e2bb5c748d014063610d43be1be6f46ca (patch)
treecee0a37496d00afa90fbc1d418a3c657d8d7f87e /src/core/hle
parentMerge pull request #6141 from lat9nq/cfg_gphcs_stack_use (diff)
downloadyuzu-03dda80e2bb5c748d014063610d43be1be6f46ca.tar
yuzu-03dda80e2bb5c748d014063610d43be1be6f46ca.tar.gz
yuzu-03dda80e2bb5c748d014063610d43be1be6f46ca.tar.bz2
yuzu-03dda80e2bb5c748d014063610d43be1be6f46ca.tar.lz
yuzu-03dda80e2bb5c748d014063610d43be1be6f46ca.tar.xz
yuzu-03dda80e2bb5c748d014063610d43be1be6f46ca.tar.zst
yuzu-03dda80e2bb5c748d014063610d43be1be6f46ca.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/process_capability.cpp5
-rw-r--r--src/core/hle/kernel/process_capability.h2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/core/hle/kernel/process_capability.cpp b/src/core/hle/kernel/process_capability.cpp
index 3fc326eab..1006ee50c 100644
--- a/src/core/hle/kernel/process_capability.cpp
+++ b/src/core/hle/kernel/process_capability.cpp
@@ -281,11 +281,6 @@ ResultCode ProcessCapabilities::HandleSyscallFlags(u32& set_svc_bits, u32 flags)
continue;
}
- if (svc_number >= svc_capabilities.size()) {
- LOG_ERROR(Kernel, "Process svc capability is out of range! svc_number={}", svc_number);
- return ResultOutOfRange;
- }
-
svc_capabilities[svc_number] = true;
}
diff --git a/src/core/hle/kernel/process_capability.h b/src/core/hle/kernel/process_capability.h
index 73ad197fa..b7a9b2e45 100644
--- a/src/core/hle/kernel/process_capability.h
+++ b/src/core/hle/kernel/process_capability.h
@@ -68,7 +68,7 @@ enum class ProgramType {
class ProcessCapabilities {
public:
using InterruptCapabilities = std::bitset<1024>;
- using SyscallCapabilities = std::bitset<128>;
+ using SyscallCapabilities = std::bitset<192>;
ProcessCapabilities() = default;
ProcessCapabilities(const ProcessCapabilities&) = delete;