diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-08-03 01:46:47 +0200 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-08-12 13:32:56 +0200 |
commit | 7b6a7d7dfb92d7a6d3537ea8b0339c2170d7eb84 (patch) | |
tree | 2b005f3358a228136e7711ddac790ed54bb67b1f /src/core/mem_map.cpp | |
parent | bd798390d5c3d1bf9084abe9839597162608f575 (diff) |
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 c45746be90..14fc014712 100644 --- a/src/core/mem_map.cpp +++ b/src/core/mem_map.cpp @@ -72,14 +72,14 @@ void Init() { g_base = MemoryMap_Setup(g_views, kNumMemViews, flags, &g_arena); - NOTICE_LOG(MEMMAP, "initialized OK, RAM at %p (mirror at 0 @ %p)", g_heap, + NOTICE_LOG(MEMMAP, "initialized OK, RAM at %p (mirror at 0 @ %p)", g_heap, g_physical_fcram); } void Shutdown() { u32 flags = 0; MemoryMap_Shutdown(g_views, kNumMemViews, flags, &g_arena); - + g_arena.ReleaseSpace(); g_base = NULL; |