diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-26 10:28:23 -0400 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-01-26 10:28:23 -0400 |
| commit | 450341b397766caa32138882acb52790f4120963 (patch) | |
| tree | 141d9ddddd6f585c1df8fc2a1465f473bebc354b /src/core/arm/exclusive_monitor.h | |
| parent | 4d6a86b03fe6ae0d98838a21613b66d5196150af (diff) | |
ArmInterface: Delegate Exclusive monitor factory to exclusive monitor interfasce.
Diffstat (limited to 'src/core/arm/exclusive_monitor.h')
| -rw-r--r-- | src/core/arm/exclusive_monitor.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/arm/exclusive_monitor.h b/src/core/arm/exclusive_monitor.h index f59aca667..18461f296 100644 --- a/src/core/arm/exclusive_monitor.h +++ b/src/core/arm/exclusive_monitor.h @@ -1,11 +1,17 @@ -// Copyright 2018 yuzu emulator team +// Copyright 2020 yuzu emulator team // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #pragma once +#include <memory> + #include "common/common_types.h" +namespace Memory { +class Memory; +} + namespace Core { class ExclusiveMonitor { @@ -22,4 +28,6 @@ public: virtual bool ExclusiveWrite128(std::size_t core_index, VAddr vaddr, u128 value) = 0; }; +std::unique_ptr<Core::ExclusiveMonitor> MakeExclusiveMonitor(Memory::Memory& memory, std::size_t num_cores); + } // namespace Core |
