diff options
| author | 2019-03-06 15:55:56 -0500 | |
|---|---|---|
| committer | 2019-03-06 15:55:56 -0500 | |
| commit | 75b417489ad3e23f62060933b0fe0f29646bbd04 (patch) | |
| tree | 1b5944f3d09d3383a9c94c3fdaf2cb14c9a9a8cf /src/core/core.cpp | |
| parent | Merge pull request #2201 from lioncash/audio-retval (diff) | |
| parent | kernel/address_arbiter: Pass in system instance to constructor (diff) | |
| download | yuzu-75b417489ad3e23f62060933b0fe0f29646bbd04.tar.gz yuzu-75b417489ad3e23f62060933b0fe0f29646bbd04.tar.xz yuzu-75b417489ad3e23f62060933b0fe0f29646bbd04.zip | |
Merge pull request #2199 from lioncash/arbiter
kernel/address_arbiter: Convert the address arbiter into a class
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index ab7181a05..6dda20faa 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -78,6 +78,7 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, | |||
| 78 | return vfs->OpenFile(path, FileSys::Mode::Read); | 78 | return vfs->OpenFile(path, FileSys::Mode::Read); |
| 79 | } | 79 | } |
| 80 | struct System::Impl { | 80 | struct System::Impl { |
| 81 | explicit Impl(System& system) : kernel{system} {} | ||
| 81 | 82 | ||
| 82 | Cpu& CurrentCpuCore() { | 83 | Cpu& CurrentCpuCore() { |
| 83 | return cpu_core_manager.GetCurrentCore(); | 84 | return cpu_core_manager.GetCurrentCore(); |
| @@ -95,7 +96,7 @@ struct System::Impl { | |||
| 95 | LOG_DEBUG(HW_Memory, "initialized OK"); | 96 | LOG_DEBUG(HW_Memory, "initialized OK"); |
| 96 | 97 | ||
| 97 | core_timing.Initialize(); | 98 | core_timing.Initialize(); |
| 98 | kernel.Initialize(core_timing); | 99 | kernel.Initialize(); |
| 99 | 100 | ||
| 100 | const auto current_time = std::chrono::duration_cast<std::chrono::seconds>( | 101 | const auto current_time = std::chrono::duration_cast<std::chrono::seconds>( |
| 101 | std::chrono::system_clock::now().time_since_epoch()); | 102 | std::chrono::system_clock::now().time_since_epoch()); |
| @@ -265,7 +266,7 @@ struct System::Impl { | |||
| 265 | Core::FrameLimiter frame_limiter; | 266 | Core::FrameLimiter frame_limiter; |
| 266 | }; | 267 | }; |
| 267 | 268 | ||
| 268 | System::System() : impl{std::make_unique<Impl>()} {} | 269 | System::System() : impl{std::make_unique<Impl>(*this)} {} |
| 269 | System::~System() = default; | 270 | System::~System() = default; |
| 270 | 271 | ||
| 271 | Cpu& System::CurrentCpuCore() { | 272 | Cpu& System::CurrentCpuCore() { |