2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

core: system: Rename GetDeviceManager -> DeviceManager.

- More consistent with other system components.
This commit is contained in:
bunnei 2020-04-08 19:18:10 -04:00
parent 3fcc4cab4f
commit 11c02a50e9
3 changed files with 7 additions and 7 deletions

View file

@ -141,7 +141,7 @@ struct System::Impl {
ResultStatus Init(System& system, Frontend::EmuWindow& emu_window) {
LOG_DEBUG(HW_Memory, "initialized OK");
device_memory = std::make_unique<DeviceMemory>(system);
device_memory = std::make_unique<Core::DeviceMemory>(system);
core_timing.Initialize();
kernel.Initialize();
@ -350,7 +350,7 @@ struct System::Impl {
std::unique_ptr<Loader::AppLoader> app_loader;
std::unique_ptr<Tegra::GPU> gpu_core;
std::unique_ptr<Hardware::InterruptManager> interrupt_manager;
std::unique_ptr<DeviceMemory> device_memory;
std::unique_ptr<Core::DeviceMemory> device_memory;
Core::Memory::Memory memory;
CpuManager cpu_manager;
bool is_powered_on = false;
@ -477,11 +477,11 @@ Kernel::Process* System::CurrentProcess() {
return impl->kernel.CurrentProcess();
}
DeviceMemory& System::GetDeviceMemory() {
Core::DeviceMemory& System::DeviceMemory() {
return *impl->device_memory;
}
const DeviceMemory& System::GetDeviceMemory() const {
const Core::DeviceMemory& System::DeviceMemory() const {
return *impl->device_memory;
}

View file

@ -258,10 +258,10 @@ public:
const Kernel::GlobalScheduler& GlobalScheduler() const;
/// Gets the manager for the guest device memory
DeviceMemory& GetDeviceMemory();
Core::DeviceMemory& DeviceMemory();
/// Gets the manager for the guest device memory
const DeviceMemory& GetDeviceMemory() const;
const Core::DeviceMemory& DeviceMemory() const;
/// Provides a pointer to the current process
Kernel::Process* CurrentProcess();

View file

@ -937,7 +937,7 @@ ResultVal<VAddr> PageTable::AllocateAndMapMemory(std::size_t needed_num_pages, s
}
PAddr PageTable::GetPhysicalAddr(VAddr addr) {
return system.GetDeviceMemory().GetPhysicalAddr(addr);
return system.DeviceMemory().GetPhysicalAddr(addr);
}
ResultCode PageTable::InitializeMemoryLayout(VAddr start, VAddr end) {