summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/core.cpp8
-rw-r--r--src/core/core.h4
-rw-r--r--src/core/hle/kernel/memory/page_table.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index f58d05c6b..f9f8a3000 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -141,7 +141,7 @@ struct System::Impl {
141 ResultStatus Init(System& system, Frontend::EmuWindow& emu_window) { 141 ResultStatus Init(System& system, Frontend::EmuWindow& emu_window) {
142 LOG_DEBUG(HW_Memory, "initialized OK"); 142 LOG_DEBUG(HW_Memory, "initialized OK");
143 143
144 device_memory = std::make_unique<DeviceMemory>(system); 144 device_memory = std::make_unique<Core::DeviceMemory>(system);
145 145
146 core_timing.Initialize(); 146 core_timing.Initialize();
147 kernel.Initialize(); 147 kernel.Initialize();
@@ -350,7 +350,7 @@ struct System::Impl {
350 std::unique_ptr<Loader::AppLoader> app_loader; 350 std::unique_ptr<Loader::AppLoader> app_loader;
351 std::unique_ptr<Tegra::GPU> gpu_core; 351 std::unique_ptr<Tegra::GPU> gpu_core;
352 std::unique_ptr<Hardware::InterruptManager> interrupt_manager; 352 std::unique_ptr<Hardware::InterruptManager> interrupt_manager;
353 std::unique_ptr<DeviceMemory> device_memory; 353 std::unique_ptr<Core::DeviceMemory> device_memory;
354 Core::Memory::Memory memory; 354 Core::Memory::Memory memory;
355 CpuManager cpu_manager; 355 CpuManager cpu_manager;
356 bool is_powered_on = false; 356 bool is_powered_on = false;
@@ -477,11 +477,11 @@ Kernel::Process* System::CurrentProcess() {
477 return impl->kernel.CurrentProcess(); 477 return impl->kernel.CurrentProcess();
478} 478}
479 479
480DeviceMemory& System::GetDeviceMemory() { 480Core::DeviceMemory& System::DeviceMemory() {
481 return *impl->device_memory; 481 return *impl->device_memory;
482} 482}
483 483
484const DeviceMemory& System::GetDeviceMemory() const { 484const Core::DeviceMemory& System::DeviceMemory() const {
485 return *impl->device_memory; 485 return *impl->device_memory;
486} 486}
487 487
diff --git a/src/core/core.h b/src/core/core.h
index 6cd93000a..acc53d6a1 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -258,10 +258,10 @@ public:
258 const Kernel::GlobalScheduler& GlobalScheduler() const; 258 const Kernel::GlobalScheduler& GlobalScheduler() const;
259 259
260 /// Gets the manager for the guest device memory 260 /// Gets the manager for the guest device memory
261 DeviceMemory& GetDeviceMemory(); 261 Core::DeviceMemory& DeviceMemory();
262 262
263 /// Gets the manager for the guest device memory 263 /// Gets the manager for the guest device memory
264 const DeviceMemory& GetDeviceMemory() const; 264 const Core::DeviceMemory& DeviceMemory() const;
265 265
266 /// Provides a pointer to the current process 266 /// Provides a pointer to the current process
267 Kernel::Process* CurrentProcess(); 267 Kernel::Process* CurrentProcess();
diff --git a/src/core/hle/kernel/memory/page_table.cpp b/src/core/hle/kernel/memory/page_table.cpp
index 01f9e99eb..93e7253e2 100644
--- a/src/core/hle/kernel/memory/page_table.cpp
+++ b/src/core/hle/kernel/memory/page_table.cpp
@@ -937,7 +937,7 @@ ResultVal<VAddr> PageTable::AllocateAndMapMemory(std::size_t needed_num_pages, s
937} 937}
938 938
939PAddr PageTable::GetPhysicalAddr(VAddr addr) { 939PAddr PageTable::GetPhysicalAddr(VAddr addr) {
940 return system.GetDeviceMemory().GetPhysicalAddr(addr); 940 return system.DeviceMemory().GetPhysicalAddr(addr);
941} 941}
942 942
943ResultCode PageTable::InitializeMemoryLayout(VAddr start, VAddr end) { 943ResultCode PageTable::InitializeMemoryLayout(VAddr start, VAddr end) {