diff options
| author | 2017-10-04 11:40:40 -0500 | |
|---|---|---|
| committer | 2017-10-04 12:30:32 -0500 | |
| commit | b863d6c86043226c8c88749c4e0eecaf9865c569 (patch) | |
| tree | b73ef73e6a2f7f7cb7fc0cb9c33ff1f7a5b00291 /src/core/hle/function_wrappers.h | |
| parent | Memory: Remove all GetPointer usages from the GDB stub. (diff) | |
| download | yuzu-b863d6c86043226c8c88749c4e0eecaf9865c569.tar.gz yuzu-b863d6c86043226c8c88749c4e0eecaf9865c569.tar.xz yuzu-b863d6c86043226c8c88749c4e0eecaf9865c569.zip | |
SVC: Replace GetPointer usage with Read32 in WaitSynchronizationN.
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 5e6002f4e..17892d81c 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -58,12 +58,12 @@ void Wrap() { | |||
| 58 | FuncReturn(retval); | 58 | FuncReturn(retval); |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | template <ResultCode func(s32*, u32*, s32, bool, s64)> | 61 | template <ResultCode func(s32*, VAddr, s32, bool, s64)> |
| 62 | void Wrap() { | 62 | void Wrap() { |
| 63 | s32 param_1 = 0; | 63 | s32 param_1 = 0; |
| 64 | s32 retval = func(¶m_1, (Kernel::Handle*)Memory::GetPointer(PARAM(1)), (s32)PARAM(2), | 64 | s32 retval = |
| 65 | (PARAM(3) != 0), (((s64)PARAM(4) << 32) | PARAM(0))) | 65 | func(¶m_1, PARAM(1), (s32)PARAM(2), (PARAM(3) != 0), (((s64)PARAM(4) << 32) | PARAM(0))) |
| 66 | .raw; | 66 | .raw; |
| 67 | 67 | ||
| 68 | Core::CPU().SetReg(1, (u32)param_1); | 68 | Core::CPU().SetReg(1, (u32)param_1); |
| 69 | FuncReturn(retval); | 69 | FuncReturn(retval); |