diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-06-03 08:33:38 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-06-03 08:33:38 +0200 |
commit | 411f5527d41ba5c4f09b914b4fb4df0c6493f744 (patch) | |
tree | de34bb541a8d2fa4a3ff411dccb2aef8a5a24574 /src/video_core/macro/macro_jit_x64.h | |
parent | Pass by reference instead of copying parameters (diff) | |
download | yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.gz yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.bz2 yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.lz yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.xz yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.zst yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.zip |
Diffstat (limited to 'src/video_core/macro/macro_jit_x64.h')
-rw-r--r-- | src/video_core/macro/macro_jit_x64.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/macro/macro_jit_x64.h b/src/video_core/macro/macro_jit_x64.h index 729ed7713..6152cb501 100644 --- a/src/video_core/macro/macro_jit_x64.h +++ b/src/video_core/macro/macro_jit_x64.h @@ -13,6 +13,7 @@ #include "video_core/macro/macro.h" namespace Tegra { + namespace Engines { class Maxwell3D; } @@ -36,7 +37,7 @@ public: MacroJITx64Impl(Engines::Maxwell3D& maxwell3d, const std::vector<u32>& code); ~MacroJITx64Impl(); - void Execute(std::vector<u32>& parameters, u32 method) override; + void Execute(const std::vector<u32>& parameters, u32 method) override; void Compile_ALU(Macro::Opcode opcode); void Compile_AddImmediate(Macro::Opcode opcode); @@ -66,7 +67,7 @@ private: struct JITState { Engines::Maxwell3D* maxwell3d{}; std::array<u32, Macro::NUM_MACRO_REGISTERS> registers{}; - u32* parameters{}; + const u32* parameters{}; u32 carry_flag{}; }; static_assert(offsetof(JITState, maxwell3d) == 0, "Maxwell3D is not at 0x0"); |