diff options
author | bunnei <ericbunnie@gmail.com> | 2014-04-27 12:40:31 -0400 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-04-27 12:40:31 -0400 |
commit | b2a6ad52f4a059b66e2a0ea12813ce968fa04277 (patch) | |
tree | aff9bf7cdb3c4a620708f7c9911a0d7b1c126153 /src/core/mem_map_funcs.cpp | |
parent | f0525a1eb4bc133f43c6dd10166965467a34dd45 (diff) |
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 d0bec31c6f..c8daf0df5f 100644 --- a/src/core/mem_map_funcs.cpp +++ b/src/core/mem_map_funcs.cpp @@ -22,7 +22,7 @@ u32 _AddressPhysicalToVirtual(const u32 addr) { // to virtual address translations here. This is obviously quite hacky... But we're not doing // any MMU emulation yet or anything if ((addr >= FCRAM_PADDR) && (addr < FCRAM_PADDR_END)) { - return (addr & FCRAM_MASK) | FCRAM_VADDR; + return VirtualAddressFromPhysical_FCRAM(addr); // Hardware IO // TODO(bunnei): FixMe |