summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc/svc_processor.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-02-05 20:22:02 +0100
committerLiam <byteslice@airmail.cc>2023-02-07 05:57:44 +0100
commit2415d37ea296e8856267375989a8b95cebe2575a (patch)
tree376baf5952a8ccc15b445702d38c056ffa71dd1b /src/core/hle/kernel/svc/svc_processor.cpp
parentMerge pull request #9731 from liamwhite/svc-move-only (diff)
downloadyuzu-2415d37ea296e8856267375989a8b95cebe2575a.tar
yuzu-2415d37ea296e8856267375989a8b95cebe2575a.tar.gz
yuzu-2415d37ea296e8856267375989a8b95cebe2575a.tar.bz2
yuzu-2415d37ea296e8856267375989a8b95cebe2575a.tar.lz
yuzu-2415d37ea296e8856267375989a8b95cebe2575a.tar.xz
yuzu-2415d37ea296e8856267375989a8b95cebe2575a.tar.zst
yuzu-2415d37ea296e8856267375989a8b95cebe2575a.zip
Diffstat (limited to 'src/core/hle/kernel/svc/svc_processor.cpp')
-rw-r--r--src/core/hle/kernel/svc/svc_processor.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc/svc_processor.cpp b/src/core/hle/kernel/svc/svc_processor.cpp
index 8561cf74f..7602ce6c0 100644
--- a/src/core/hle/kernel/svc/svc_processor.cpp
+++ b/src/core/hle/kernel/svc/svc_processor.cpp
@@ -9,12 +9,16 @@
namespace Kernel::Svc {
/// Get which CPU core is executing the current thread
-u32 GetCurrentProcessorNumber(Core::System& system) {
+int32_t GetCurrentProcessorNumber(Core::System& system) {
LOG_TRACE(Kernel_SVC, "called");
- return static_cast<u32>(system.CurrentPhysicalCore().CoreIndex());
+ return static_cast<int32_t>(system.CurrentPhysicalCore().CoreIndex());
}
-u32 GetCurrentProcessorNumber32(Core::System& system) {
+int32_t GetCurrentProcessorNumber64(Core::System& system) {
+ return GetCurrentProcessorNumber(system);
+}
+
+int32_t GetCurrentProcessorNumber64From32(Core::System& system) {
return GetCurrentProcessorNumber(system);
}