From 76428887b87ce639c6a68b2becfb4c749984cc7c Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 26 Oct 2020 22:00:10 +1000 Subject: [PATCH] CPU/Recompiler: Fix typo in UninhibitAllocation function name --- src/core/cpu_recompiler_code_generator.cpp | 4 ++-- src/core/cpu_recompiler_code_generator_aarch64.cpp | 4 ++-- src/core/cpu_recompiler_code_generator_generic.cpp | 2 +- src/core/cpu_recompiler_code_generator_x64.cpp | 6 +++--- src/core/cpu_recompiler_register_cache.cpp | 2 +- src/core/cpu_recompiler_register_cache.h | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/core/cpu_recompiler_code_generator.cpp b/src/core/cpu_recompiler_code_generator.cpp index 340faf6da..1cddef27c 100644 --- a/src/core/cpu_recompiler_code_generator.cpp +++ b/src/core/cpu_recompiler_code_generator.cpp @@ -1745,7 +1745,7 @@ bool CodeGenerator::Compile_Divide(const CodeBlockInstruction& cbi) EmitBindLabel(&done); - m_register_cache.UnunhibitAllocation(); + m_register_cache.UninhibitAllocation(); m_register_cache.WriteGuestRegister(Reg::lo, std::move(lo)); m_register_cache.WriteGuestRegister(Reg::hi, std::move(hi)); } @@ -1827,7 +1827,7 @@ bool CodeGenerator::Compile_SignedDivide(const CodeBlockInstruction& cbi) EmitBindLabel(&done); - m_register_cache.UnunhibitAllocation(); + m_register_cache.UninhibitAllocation(); m_register_cache.WriteGuestRegister(Reg::lo, std::move(lo)); m_register_cache.WriteGuestRegister(Reg::hi, std::move(hi)); } diff --git a/src/core/cpu_recompiler_code_generator_aarch64.cpp b/src/core/cpu_recompiler_code_generator_aarch64.cpp index ff40bf48b..250ff2368 100644 --- a/src/core/cpu_recompiler_code_generator_aarch64.cpp +++ b/src/core/cpu_recompiler_code_generator_aarch64.cpp @@ -1371,7 +1371,7 @@ void CodeGenerator::EmitLoadGuestMemoryFastmem(const CodeBlockInstruction& cbi, EmitBranch(GetCurrentNearCodePointer(), false); SwitchToNearCode(); - m_register_cache.UnunhibitAllocation(); + m_register_cache.UninhibitAllocation(); m_block->loadstore_backpatch_info.push_back(bpi); } @@ -1508,7 +1508,7 @@ void CodeGenerator::EmitStoreGuestMemoryFastmem(const CodeBlockInstruction& cbi, EmitBranch(GetCurrentNearCodePointer(), false); SwitchToNearCode(); - m_register_cache.UnunhibitAllocation(); + m_register_cache.UninhibitAllocation(); m_block->loadstore_backpatch_info.push_back(bpi); } diff --git a/src/core/cpu_recompiler_code_generator_generic.cpp b/src/core/cpu_recompiler_code_generator_generic.cpp index 2d4e1128f..f03746ca8 100644 --- a/src/core/cpu_recompiler_code_generator_generic.cpp +++ b/src/core/cpu_recompiler_code_generator_generic.cpp @@ -184,7 +184,7 @@ void CodeGenerator::EmitICacheCheckAndUpdate() } EmitBindLabel(&ready_to_execute); - m_register_cache.UnunhibitAllocation(); + m_register_cache.UninhibitAllocation(); } #endif diff --git a/src/core/cpu_recompiler_code_generator_x64.cpp b/src/core/cpu_recompiler_code_generator_x64.cpp index 9e7243aed..53bbfd35c 100644 --- a/src/core/cpu_recompiler_code_generator_x64.cpp +++ b/src/core/cpu_recompiler_code_generator_x64.cpp @@ -1897,7 +1897,7 @@ void CodeGenerator::EmitLoadGuestMemoryFastmem(const CodeBlockInstruction& cbi, m_emit->jmp(GetCurrentNearCodePointer()); SwitchToNearCode(); - m_register_cache.UnunhibitAllocation(); + m_register_cache.UninhibitAllocation(); m_block->loadstore_backpatch_info.push_back(bpi); } @@ -2111,7 +2111,7 @@ void CodeGenerator::EmitStoreGuestMemoryFastmem(const CodeBlockInstruction& cbi, m_emit->jmp(GetCurrentNearCodePointer()); SwitchToNearCode(); - m_register_cache.UnunhibitAllocation(); + m_register_cache.UninhibitAllocation(); m_block->loadstore_backpatch_info.push_back(bpi); } @@ -2507,7 +2507,7 @@ void CodeGenerator::EmitICacheCheckAndUpdate() } m_emit->L(done); - m_register_cache.UnunhibitAllocation(); + m_register_cache.UninhibitAllocation(); } void CodeGenerator::EmitBranch(const void* address, bool allow_scratch) diff --git a/src/core/cpu_recompiler_register_cache.cpp b/src/core/cpu_recompiler_register_cache.cpp index 75f6e7bb9..3aae2d167 100644 --- a/src/core/cpu_recompiler_register_cache.cpp +++ b/src/core/cpu_recompiler_register_cache.cpp @@ -907,7 +907,7 @@ void RegisterCache::InhibitAllocation() m_state.allocator_inhibit_count++; } -void RegisterCache::UnunhibitAllocation() +void RegisterCache::UninhibitAllocation() { Assert(m_state.allocator_inhibit_count > 0); m_state.allocator_inhibit_count--; diff --git a/src/core/cpu_recompiler_register_cache.h b/src/core/cpu_recompiler_register_cache.h index df9ddd8e1..4863f318d 100644 --- a/src/core/cpu_recompiler_register_cache.h +++ b/src/core/cpu_recompiler_register_cache.h @@ -331,7 +331,7 @@ public: /// Temporarily prevents register allocation. void InhibitAllocation(); - void UnunhibitAllocation(); + void UninhibitAllocation(); private: void ClearRegisterFromOrder(Reg reg);