diff --git a/src/backend_x64/jitstate.cpp b/src/backend_x64/jitstate.cpp index bc67520b..bb5cfc4c 100644 --- a/src/backend_x64/jitstate.cpp +++ b/src/backend_x64/jitstate.cpp @@ -14,7 +14,7 @@ namespace Dynarmic { namespace BackendX64 { -void JitState::ResetRSB(BlockOfCode* code) { +void JitState::ResetRSB(const BlockOfCode* code) { for (auto& value : rsb_codeptrs) { value = u64(code->GetReturnFromRunCodeAddress()); } diff --git a/src/backend_x64/jitstate.h b/src/backend_x64/jitstate.h index a03101fa..7df16ea6 100644 --- a/src/backend_x64/jitstate.h +++ b/src/backend_x64/jitstate.h @@ -18,7 +18,7 @@ class BlockOfCode; constexpr size_t SpillCount = 32; struct JitState { - JitState(BlockOfCode* code) { ResetRSB(code); } + explicit JitState(const BlockOfCode* code) { ResetRSB(code); } u32 Cpsr = 0; std::array Reg{}; // Current register file. @@ -43,7 +43,7 @@ struct JitState { u32 rsb_ptr = 0; std::array rsb_location_descriptors; std::array rsb_codeptrs; - void ResetRSB(BlockOfCode* code); + void ResetRSB(const BlockOfCode* code); u32 FPSCR_IDC = 0; u32 FPSCR_UFC = 0;