diff options
author | Lioncash <mathew1800@gmail.com> | 2015-07-21 11:49:05 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-07-21 11:49:05 +0200 |
commit | 043b2f882aa48488ba632621cd62c5784e1c8fab (patch) | |
tree | bd812292360525f0172a469e11f81ac57339852d /src/core/hle/svc.cpp | |
parent | Resolve issue accidentally left unaddressed in PR #930 (diff) | |
parent | dyncom: Pass SVC immediates directly. (diff) | |
download | yuzu-043b2f882aa48488ba632621cd62c5784e1c8fab.tar yuzu-043b2f882aa48488ba632621cd62c5784e1c8fab.tar.gz yuzu-043b2f882aa48488ba632621cd62c5784e1c8fab.tar.bz2 yuzu-043b2f882aa48488ba632621cd62c5784e1c8fab.tar.lz yuzu-043b2f882aa48488ba632621cd62c5784e1c8fab.tar.xz yuzu-043b2f882aa48488ba632621cd62c5784e1c8fab.tar.zst yuzu-043b2f882aa48488ba632621cd62c5784e1c8fab.zip |
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r-- | src/core/hle/svc.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 802ecc52a..bdede964e 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -833,8 +833,7 @@ static const FunctionDef SVC_Table[] = { Common::Profiling::TimingCategory profiler_svc("SVC Calls"); -static const FunctionDef* GetSVCInfo(u32 opcode) { - u32 func_num = opcode & 0xFFFFFF; // 8 bits +static const FunctionDef* GetSVCInfo(u32 func_num) { if (func_num >= ARRAY_SIZE(SVC_Table)) { LOG_ERROR(Kernel_SVC, "unknown svc=0x%02X", func_num); return nullptr; @@ -842,10 +841,10 @@ static const FunctionDef* GetSVCInfo(u32 opcode) { return &SVC_Table[func_num]; } -void CallSVC(u32 opcode) { +void CallSVC(u32 immediate) { Common::Profiling::ScopeTimer timer_svc(profiler_svc); - const FunctionDef *info = GetSVCInfo(opcode); + const FunctionDef* info = GetSVCInfo(immediate); if (info) { if (info->func) { info->func(); |