Commit Graph

76 Commits (42d43ea741886b9592fd7dfd57c33228afacf44c)

Author SHA1 Message Date
bunnei 42d43ea741
Merge pull request #387 from Subv/maxwell_2d
GPU: Partially implemented the 2D surface copy engine
8 years ago
Subv 5ab597041f Memory: Added a missing shortcut for Memory::CopyBlock for the current process. 8 years ago
Lioncash 6d00780045
core/memory: Amend address widths in asserts
Addresses are 64-bit, these formatting specifiers are simply holdovers from citra. Adjust them to be the correct width.
8 years ago
Lioncash 59dae03dbe
core/memory: Move logging macros over to new fmt-capable ones
While we're at it, correct addresses to print all 64 bits where applicable, which were holdovers from citra.
8 years ago
bunnei 4415e00181 gl_rasterizer_cache: Update to be based on GPU addresses, not CPU addresses. 8 years ago
bunnei d4fb8a887c memory: Fix cast for ReadBlock/WriteBlock/ZeroBlock/CopyBlock. 8 years ago
bunnei d732142b66 memory: Add RasterizerMarkRegionCached code and cleanup. 8 years ago
bunnei a10baacf9e
Merge pull request #265 from bunnei/tegra-progress-2
Tegra progress 2
8 years ago
bunnei b5f3e7951b memory: Fix typo in RasterizerFlushVirtualRegion. 8 years ago
bunnei 1a158dfcd6 memory: RasterizerFlushVirtualRegion should also check process image region. 8 years ago
bunnei 11047d7fd5 rasterizer: Flush and invalidate regions should be 64-bit. 8 years ago
bunnei 63d3924b5b memory: Port RasterizerFlushVirtualRegion from Citra. 8 years ago
N00byKing 8afdbf6a1f Remove more N3DS References 8 years ago
bunnei 7d6653268f core: Move process creation out of global state. 8 years ago
MerryMage cc368de1a0 memory: LOG_ERROR when falling off end of page table 8 years ago
Lioncash fe0775d2f4
memory: Silence formatting sepecifier warnings 8 years ago
MerryMage 738f91a57d memory: Replace all memory hooking with Special regions 8 years ago
Rozlette de7aa3106a memory: Return false for large VAddr in IsValidVirtualAddress 8 years ago
James Rowe 389979018c Remove gpu debugger and get yuzu qt to compile 8 years ago
MerryMage f10a304ecd fix macos build 8 years ago
bunnei 93480b10ef core/video_core: Fix a bunch of u64 -> u32 warnings. 8 years ago
bunnei 97d52b9f89 memory: Print addresses as 64-bit. 8 years ago
bunnei b1d5db1cf6 Merge remote-tracking branch 'upstream/master' into nx
# Conflicts:
#	src/core/CMakeLists.txt
#	src/core/arm/dynarmic/arm_dynarmic.cpp
#	src/core/arm/dyncom/arm_dyncom.cpp
#	src/core/hle/kernel/process.cpp
#	src/core/hle/kernel/thread.cpp
#	src/core/hle/kernel/thread.h
#	src/core/hle/kernel/vm_manager.cpp
#	src/core/loader/3dsx.cpp
#	src/core/loader/elf.cpp
#	src/core/loader/ncch.cpp
#	src/core/memory.cpp
#	src/core/memory.h
#	src/core/memory_setup.h
8 years ago
Subv 1f2de7501b Memory: Make WriteBlock take a Process parameter on which to operate 8 years ago
Subv 811c01e5fe Memory: Make ReadBlock take a Process parameter on which to operate 8 years ago
bunnei 46297c9653 memory: Log with 64-bit values. 8 years ago
bunnei f01472a5ff core: Various changes to support 64-bit addressing. 8 years ago
Huw Pascoe a13ab958cb Fixed type conversion ambiguity 8 years ago
bunnei b07af7dda8 Merge pull request #2961 from Subv/load_titles
Loaders: Don't automatically set the current process every time we load an application.
8 years ago
James Rowe 5620327e03 Merge pull request #2954 from Subv/cache_unmapped_mem
Memory/RasterizerCache: Ignore unmapped memory regions when caching physical regions
8 years ago
Subv 35da7f57ef Memory: Allow IsValidVirtualAddress to be called with a specific process parameter.
There is still an overload of IsValidVirtualAddress that only takes the VAddr and will default to the current process.
8 years ago
Subv 41f6c9f87f Memory/RasterizerCache: Ignore unmapped memory regions when caching physical regions.
Not all physical regions need to be mapped into the address space of every process, for example, system modules do not have a VRAM mapping.

This fixes a crash when loading applets and system modules.
8 years ago
MerryMage 67a70bd9e1 ARM_Interface: Implement PageTableChanged 8 years ago
MerryMage 4e5eb2044a memory: Remove GetCurrentPageTablePointers 8 years ago
MerryMage c02bbb7030 memory: Add GetCurrentPageTable/SetCurrentPageTable
Don't expose Memory::current_page_table as a global.
8 years ago
B3n30 813837c5cf Merge pull request #2842 from Subv/switchable_page_table
Kernel/Memory: Give each process its own page table and allow switching the current page table upon reschedule
8 years ago
Subv f18a176b60 Kernel/Memory: Make IsValidPhysicalAddress not go through the current process' virtual memory mapping. 8 years ago
Subv 214150f00c Kernel/Memory: Changed GetPhysicalPointer so that it doesn't go through the current process' page table to obtain a pointer. 8 years ago
Subv 6d2734a074 Kernel/Memory: Give each Process its own page table.
The loader is in charge of setting the newly created process's page table as the main one during the loading process.
8 years ago
danzel 8266064796 Use recursive_mutex instead of mutex to fix #2902 8 years ago
James Rowe 61442d6afb Merge pull request #2839 from Subv/global_kernel_lock
Kernel/HLE: Use a mutex  to synchronize access to the HLE kernel state between the cpu thread and any other possible threads that might touch the kernel (network thread, etc).
9 years ago
Subv f484927ed0 Kernel/Memory: Acquire the global HLE lock when a memory read/write operation falls outside of the fast path, for it might perform an MMIO operation. 9 years ago
Weiyi Wang 045d0b5bbd Merge pull request #2799 from yuriks/virtual-cached-range-flush
Add address conversion functions returning optional, Add function to flush virtual region from rasterizer cache
9 years ago
Yuri Kunde Schlesner d553135748 Memory: Add function to flush a virtual range from the rasterizer cache
This is slightly more ergonomic to use, correctly handles virtual
regions which are disjoint in physical addressing space, and checks only
regions which can be cached by the rasterizer.
9 years ago
Yuri Kunde Schlesner f2a5a77e27 Memory: Fix crash when unmapping a VMA covering cached surfaces
Unmapping pages tries to flush any cached GPU surfaces touching that
region. When a cached page is invalidated, GetPointerFromVMA() is used
to restore the original pagetable pointer. However, since that VMA has
already been deleted, this hits an UNREACHABLE case in that function.

Now when this happens, just set the page type to Unmapped and continue,
which arrives at the correct end result.
9 years ago
Yuri Kunde Schlesner 6ae0086b39 Memory: Add TryVirtualToPhysicalAddress, returning a boost::optional 9 years ago
Yuri Kunde Schlesner 326e7c7020 Memory: Make PhysicalToVirtualAddress return a boost::optional
And fix a few places in the code to take advantage of that.
9 years ago
Yuri Kunde Schlesner d3db770cad Memory: Add constants for the n3DS additional RAM
This is 4MB of extra, separate memory that was added on the New 3DS.
9 years ago
bunnei 4798b1d04d Revert "Memory: Always flush whole pages from surface cache" 9 years ago
Yuri Kunde Schlesner f2b9be9bd3 Memory: Always flush whole pages from surface cache
This prevents individual writes touching a cached page, but which don't
overlap the surface, from constantly hitting the surface cache lookup.
9 years ago