diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp index 91f82c45e9..3e1e6d9f54 100644 --- a/src/core/hle/kernel/shared_memory.cpp +++ b/src/core/hle/kernel/shared_memory.cpp @@ -87,8 +87,8 @@ SharedPtr KernelSystem::CreateSharedMemoryForApplet( for (const auto& interval : backing_blocks) { shared_memory->backing_blocks.push_back( {memory.GetFCRAMPointer(interval.lower()), interval.upper() - interval.lower()}); - std::fill(memory.GetFCRAMPointer(interval.lower()), memory.GetFCRAMPointer(interval.upper()), - 0); + std::fill(memory.GetFCRAMPointer(interval.lower()), + memory.GetFCRAMPointer(interval.upper()), 0); } shared_memory->base_address = Memory::HEAP_VADDR + offset; diff --git a/src/core/memory.cpp b/src/core/memory.cpp index d94bd0381b..396a00e39b 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -29,7 +29,8 @@ public: std::fill(n3ds_extra_ram.get(), n3ds_extra_ram.get() + Memory::N3DS_EXTRA_RAM_SIZE, 0); } - // Visual Studio would try to allocate these on compile time if they are std::array, which would exceed the memory limit. + // Visual Studio would try to allocate these on compile time if they are std::array, which would + // exceed the memory limit. std::unique_ptr fcram = std::make_unique(Memory::FCRAM_N3DS_SIZE); std::unique_ptr vram = std::make_unique(Memory::VRAM_SIZE); std::unique_ptr n3ds_extra_ram = std::make_unique(Memory::N3DS_EXTRA_RAM_SIZE); @@ -223,7 +224,8 @@ u8* MemorySystem::GetPointer(const VAddr vaddr) { return page_pointer + (vaddr & PAGE_MASK); } - if (impl->current_page_table->attributes[vaddr >> PAGE_BITS] == PageType::RasterizerCachedMemory) { + if (impl->current_page_table->attributes[vaddr >> PAGE_BITS] == + PageType::RasterizerCachedMemory) { return GetPointerForRasterizerCache(vaddr); }