summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-12 01:33:13 -0400
committerGravatar bunnei2014-04-12 01:33:13 -0400
commit9a9b7b289ab87e22b9896c0345d42b61c47a304f (patch)
treeeafb65e5677663bd5b7871e3c29bf9bcd82e4d73 /src
parent- renamed hle_syscall to just syscall (diff)
downloadyuzu-9a9b7b289ab87e22b9896c0345d42b61c47a304f.tar.gz
yuzu-9a9b7b289ab87e22b9896c0345d42b61c47a304f.tar.xz
yuzu-9a9b7b289ab87e22b9896c0345d42b61c47a304f.zip
added a memory mapped option for HLE
Diffstat (limited to 'src')
-rw-r--r--src/core/mem_map.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h
index 94469ec8c..29f2dce86 100644
--- a/src/core/mem_map.h
+++ b/src/core/mem_map.h
@@ -19,19 +19,22 @@ enum {
19 MEM_AXI_WRAM_SIZE = 0x00080000, ///< AXI WRAM size 19 MEM_AXI_WRAM_SIZE = 0x00080000, ///< AXI WRAM size
20 MEM_FCRAM_SIZE = 0x08000000, ///< FCRAM size... Really 0x07E00000, but power of 2 20 MEM_FCRAM_SIZE = 0x08000000, ///< FCRAM size... Really 0x07E00000, but power of 2
21 // works much better 21 // works much better
22 MEM_SCRATCHPAD_SIZE = 0x00004000, ///< Typical stack size - TODO: Read from exheader 22 MEM_SCRATCHPAD_SIZE = 0x00004000, ///< Typical stack size - TODO: Read from exheader
23 23
24 MEM_VRAM_MASK = 0x007FFFFF, 24 MEM_VRAM_MASK = 0x007FFFFF,
25 MEM_FCRAM_MASK = (MEM_FCRAM_SIZE - 1), ///< FCRAM mask 25 MEM_FCRAM_MASK = (MEM_FCRAM_SIZE - 1), ///< FCRAM mask
26 MEM_SCRATCHPAD_MASK = (MEM_SCRATCHPAD_SIZE - 1), ///< Scratchpad memory mask 26 MEM_SCRATCHPAD_MASK = (MEM_SCRATCHPAD_SIZE - 1), ///< Scratchpad memory mask
27 27
28 MEM_FCRAM_PADDR = 0x20000000, ///< FCRAM physical address 28 MEM_FCRAM_PADDR = 0x20000000, ///< FCRAM physical address
29 MEM_FCRAM_PADDR_END = (MEM_FCRAM_PADDR + MEM_FCRAM_SIZE), ///< FCRAM end of physical space 29 MEM_FCRAM_PADDR_END = (MEM_FCRAM_PADDR + MEM_FCRAM_SIZE), ///< FCRAM end of physical space
30 MEM_FCRAM_VADDR = 0x08000000, ///< FCRAM virtual address 30 MEM_FCRAM_VADDR = 0x08000000, ///< FCRAM virtual address
31 MEM_FCRAM_VADDR_END = (MEM_FCRAM_VADDR + MEM_FCRAM_SIZE), ///< FCRAM end of virtual space 31 MEM_FCRAM_VADDR_END = (MEM_FCRAM_VADDR + MEM_FCRAM_SIZE), ///< FCRAM end of virtual space
32 32
33 MEM_VRAM_VADDR = 0x1F000000, 33 MEM_VRAM_VADDR = 0x1F000000,
34 MEM_SCRATCHPAD_VADDR = (0x10000000 - MEM_SCRATCHPAD_SIZE), ///< Scratchpad virtual address 34 MEM_SCRATCHPAD_VADDR = (0x10000000 - MEM_SCRATCHPAD_SIZE), ///< Scratchpad virtual address
35
36 MEM_OSHLE_VADDR = 0xC0000000, ///< Memory for use by OSHLE accessible by appcore CPU
37 MEM_OSHLE_SIZE = 0x08000000, ///< ...Same size as FCRAM for now
35}; 38};
36 39
37//////////////////////////////////////////////////////////////////////////////////////////////////// 40////////////////////////////////////////////////////////////////////////////////////////////////////