diff options
author | Subv <subv2112@gmail.com> | 2018-07-31 03:09:49 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-31 03:38:24 +0200 |
commit | 8191273a3de6df8531805fbfb1a9b6e5a18076a2 (patch) | |
tree | e0995886afcfab34d09e5addc8322c42bd547ff8 /src/video_core/macro_interpreter.h | |
parent | nvhost_gpu: Added checks to ensure we don't read past the end of the entries when handling a GPU command list. (diff) | |
download | yuzu-8191273a3de6df8531805fbfb1a9b6e5a18076a2.tar yuzu-8191273a3de6df8531805fbfb1a9b6e5a18076a2.tar.gz yuzu-8191273a3de6df8531805fbfb1a9b6e5a18076a2.tar.bz2 yuzu-8191273a3de6df8531805fbfb1a9b6e5a18076a2.tar.lz yuzu-8191273a3de6df8531805fbfb1a9b6e5a18076a2.tar.xz yuzu-8191273a3de6df8531805fbfb1a9b6e5a18076a2.tar.zst yuzu-8191273a3de6df8531805fbfb1a9b6e5a18076a2.zip |
Diffstat (limited to 'src/video_core/macro_interpreter.h')
-rw-r--r-- | src/video_core/macro_interpreter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/macro_interpreter.h b/src/video_core/macro_interpreter.h index a71e359d8..7d836b816 100644 --- a/src/video_core/macro_interpreter.h +++ b/src/video_core/macro_interpreter.h @@ -91,6 +91,10 @@ private: u32 GetBitfieldMask() const { return (1 << bf_size) - 1; } + + s32 GetBranchTarget() const { + return static_cast<s32>(immediate * sizeof(u32)); + } }; union MethodAddress { |