diff options
| author | 2014-04-27 12:40:31 -0400 | |
|---|---|---|
| committer | 2014-04-27 12:40:31 -0400 | |
| commit | b2a6ad52f4a059b66e2a0ea12813ce968fa04277 (patch) | |
| tree | aff9bf7cdb3c4a620708f7c9911a0d7b1c126153 /src/core/mem_map_funcs.cpp | |
| parent | added code to LCD modules keep track of framebuffer location in FCRAM or VRAM (diff) | |
| download | yuzu-b2a6ad52f4a059b66e2a0ea12813ce968fa04277.tar.gz yuzu-b2a6ad52f4a059b66e2a0ea12813ce968fa04277.tar.xz yuzu-b2a6ad52f4a059b66e2a0ea12813ce968fa04277.zip | |
added helper functions to mem_map to convert physical addresses to virtual addresses
Diffstat (limited to 'src/core/mem_map_funcs.cpp')
| -rw-r--r-- | src/core/mem_map_funcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mem_map_funcs.cpp b/src/core/mem_map_funcs.cpp index d0bec31c6..c8daf0df5 100644 --- a/src/core/mem_map_funcs.cpp +++ b/src/core/mem_map_funcs.cpp | |||
| @@ -22,7 +22,7 @@ u32 _AddressPhysicalToVirtual(const u32 addr) { | |||
| 22 | // to virtual address translations here. This is obviously quite hacky... But we're not doing | 22 | // to virtual address translations here. This is obviously quite hacky... But we're not doing |
| 23 | // any MMU emulation yet or anything | 23 | // any MMU emulation yet or anything |
| 24 | if ((addr >= FCRAM_PADDR) && (addr < FCRAM_PADDR_END)) { | 24 | if ((addr >= FCRAM_PADDR) && (addr < FCRAM_PADDR_END)) { |
| 25 | return (addr & FCRAM_MASK) | FCRAM_VADDR; | 25 | return VirtualAddressFromPhysical_FCRAM(addr); |
| 26 | 26 | ||
| 27 | // Hardware IO | 27 | // Hardware IO |
| 28 | // TODO(bunnei): FixMe | 28 | // TODO(bunnei): FixMe |