b3587102d1
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] |
||
---|---|---|
.. | ||
address_space_info.cpp | ||
address_space_info.h | ||
memory_block.h | ||
memory_block_manager.cpp | ||
memory_block_manager.h | ||
memory_layout.h | ||
memory_manager.cpp | ||
memory_manager.h | ||
memory_types.h | ||
page_heap.cpp | ||
page_heap.h | ||
page_linked_list.h | ||
page_table.cpp | ||
page_table.h | ||
slab_heap.h | ||
system_control.cpp | ||
system_control.h |