diff options
| author | 2014-08-03 01:46:47 +0200 | |
|---|---|---|
| committer | 2014-08-12 13:32:56 +0200 | |
| commit | 7b6a7d7dfb92d7a6d3537ea8b0339c2170d7eb84 (patch) | |
| tree | 2b005f3358a228136e7711ddac790ed54bb67b1f /src/core/mem_map.cpp | |
| parent | GSP: Fix a major regression introduced in ffda035c, due to which no display t... (diff) | |
| download | yuzu-7b6a7d7dfb92d7a6d3537ea8b0339c2170d7eb84.tar.gz yuzu-7b6a7d7dfb92d7a6d3537ea8b0339c2170d7eb84.tar.xz yuzu-7b6a7d7dfb92d7a6d3537ea8b0339c2170d7eb84.zip | |
Pica/GPU: Change hardware registers to use physical addresses rather than virtual ones.
This cleans up the mess that address reading/writing had become and makes the code a *lot* more sensible.
This adds a physical<->virtual address converter to mem_map.h. For further accuracy, we will want to properly extend this to support a wider range of address regions. For now, this makes simply homebrew applications work in a good manner though.
Diffstat (limited to 'src/core/mem_map.cpp')
| -rw-r--r-- | src/core/mem_map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/mem_map.cpp b/src/core/mem_map.cpp index c45746be9..14fc01471 100644 --- a/src/core/mem_map.cpp +++ b/src/core/mem_map.cpp | |||
| @@ -72,14 +72,14 @@ void Init() { | |||
| 72 | 72 | ||
| 73 | g_base = MemoryMap_Setup(g_views, kNumMemViews, flags, &g_arena); | 73 | g_base = MemoryMap_Setup(g_views, kNumMemViews, flags, &g_arena); |
| 74 | 74 | ||
| 75 | NOTICE_LOG(MEMMAP, "initialized OK, RAM at %p (mirror at 0 @ %p)", g_heap, | 75 | NOTICE_LOG(MEMMAP, "initialized OK, RAM at %p (mirror at 0 @ %p)", g_heap, |
| 76 | g_physical_fcram); | 76 | g_physical_fcram); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | void Shutdown() { | 79 | void Shutdown() { |
| 80 | u32 flags = 0; | 80 | u32 flags = 0; |
| 81 | MemoryMap_Shutdown(g_views, kNumMemViews, flags, &g_arena); | 81 | MemoryMap_Shutdown(g_views, kNumMemViews, flags, &g_arena); |
| 82 | 82 | ||
| 83 | g_arena.ReleaseSpace(); | 83 | g_arena.ReleaseSpace(); |
| 84 | g_base = NULL; | 84 | g_base = NULL; |
| 85 | 85 | ||