summaryrefslogtreecommitdiffstats
path: root/src/common/page_table.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-07-03Use spans over guest memory where possible instead of copying data.Kelebek11-0/+1
2022-06-16core/debugger: memory breakpoint supportLiam1-0/+3
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-03-19common: Reduce unused includesameerj1-1/+0
2022-02-19fixup! core: hle: kernel: KPageTable: Improve Un/MapPhysicalMemory.bunnei1-2/+2
2022-02-19core: hle: kernel: KPageTable: Improve Un/MapPhysicalMemory.bunnei1-4/+20
- Improves the implementations of MapPhysicalMemory and UnmapPhysicalMemory to more closely reflect latest HOS.
2021-06-11core: Make use of fastmemMarkus Wick1-0/+2
2021-05-29core/memory: Check our memory fallbacks for out-of-bound behavior.Markus Wick1-0/+6
This makes it by far harder to crash yuzu. Also implement the 48bit masking of AARCH64 while touching this code.
2021-01-02general: Fix various spelling errorsMorph1-1/+1
2021-01-01memory: Remove MemoryHookMerryMage1-18/+0
2020-12-30core/memory: Read and write page table atomicallyReinUsesLisp1-11/+57
Squash attributes into the pointer's integer, making them an uintptr_t pair containing 2 bits at the bottom and then the pointer. These bits are currently unused thanks to alignment requirements. Configure Dynarmic to mask out these bits on pointer reads. While we are at it, remove some unused attributes carried over from Citra. Read/Write and other hot functions use a two step unpacking process that is less readable to stop MSVC from emitting an extra AND instruction in the hot path: mov rdi,rcx shr rdx,0Ch mov r8,qword ptr [rax+8] mov rax,qword ptr [r8+rdx*8] mov rdx,rax -and al,3 and rdx,0FFFFFFFFFFFFFFFCh je Core::Memory::Memory::Impl::Read<unsigned char> mov rax,qword ptr [vaddr] movzx eax,byte ptr [rdx+rax]
2020-11-18page_table: Allow page tables to be movedLioncash1-1/+9
Makes page tables and virtual buffers able to be moved, but not copied, making the interface more flexible. Previously, with the destructor specified, but no move assignment or constructor specified, they wouldn't be implicitly generated.
2020-11-18page_table: Add missing doxygen parameters to Resize()Lioncash1-0/+2
Resolves two -Wdocumentation warnings.
2020-11-18page_table: Remove unnecessary header inclusionsLioncash1-4/+0
Prevents indirect inclusions for these headers.
2020-08-15common: Make use of [[nodiscard]] where applicableLioncash1-2/+2
Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
2020-04-17common: page_table: Update to use VirtualBuffer and simplify.bunnei1-28/+9
2020-03-14PageTable: move backing addresses to a children class as the CPU page table does not need them.Fernando Sahmkow1-2/+13
This PR aims to reduce the memory usage in the CPU page table by moving GPU specific parameters into a child class. This saves 1Gb of Memory for most games.
2019-03-21gpu: Rewrite virtual memory manager using PageTable.bunnei1-1/+5
2019-03-17core: Move PageTable struct into Common.bunnei1-0/+80