diff options
author | bunnei <bunneidev@gmail.com> | 2023-07-22 06:22:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-22 06:22:51 +0200 |
commit | 39edd2ff82674e7fae2ac3dc679f3de92174fa3e (patch) | |
tree | 2b636c0ecf2af3c1753939298f5be6ac5b69f7f3 /src/core/hle/kernel/physical_core.cpp | |
parent | Merge pull request #11123 from Morph1984/remove-mem-hungry-opts (diff) | |
parent | core: remove remaining uses of dynamic_cast (diff) | |
download | yuzu-39edd2ff82674e7fae2ac3dc679f3de92174fa3e.tar yuzu-39edd2ff82674e7fae2ac3dc679f3de92174fa3e.tar.gz yuzu-39edd2ff82674e7fae2ac3dc679f3de92174fa3e.tar.bz2 yuzu-39edd2ff82674e7fae2ac3dc679f3de92174fa3e.tar.lz yuzu-39edd2ff82674e7fae2ac3dc679f3de92174fa3e.tar.xz yuzu-39edd2ff82674e7fae2ac3dc679f3de92174fa3e.tar.zst yuzu-39edd2ff82674e7fae2ac3dc679f3de92174fa3e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/physical_core.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/kernel/physical_core.cpp b/src/core/hle/kernel/physical_core.cpp index 2e0c36129..5ee869fa2 100644 --- a/src/core/hle/kernel/physical_core.cpp +++ b/src/core/hle/kernel/physical_core.cpp @@ -17,7 +17,9 @@ PhysicalCore::PhysicalCore(std::size_t core_index, Core::System& system, KSchedu // a 32-bit instance of Dynarmic. This should be abstracted out to a CPU manager. auto& kernel = system.Kernel(); m_arm_interface = std::make_unique<Core::ARM_Dynarmic_64>( - system, kernel.IsMulticore(), kernel.GetExclusiveMonitor(), m_core_index); + system, kernel.IsMulticore(), + reinterpret_cast<Core::DynarmicExclusiveMonitor&>(kernel.GetExclusiveMonitor()), + m_core_index); #else #error Platform not supported yet. #endif @@ -31,7 +33,9 @@ void PhysicalCore::Initialize(bool is_64_bit) { if (!is_64_bit) { // We already initialized a 64-bit core, replace with a 32-bit one. m_arm_interface = std::make_unique<Core::ARM_Dynarmic_32>( - m_system, kernel.IsMulticore(), kernel.GetExclusiveMonitor(), m_core_index); + m_system, kernel.IsMulticore(), + reinterpret_cast<Core::DynarmicExclusiveMonitor&>(kernel.GetExclusiveMonitor()), + m_core_index); } #else #error Platform not supported yet. |