diff options
| author | 2014-04-03 22:04:24 -0400 | |
|---|---|---|
| committer | 2014-04-03 22:07:05 -0400 | |
| commit | cbd1de38be4535eb200f171ebd64c9039e369c48 (patch) | |
| tree | 8f71cab3333e8cc6f6dc4e01195b5a8667997310 /src | |
| parent | More Qt changes for debugger (diff) | |
| download | yuzu-cbd1de38be4535eb200f171ebd64c9039e369c48.tar.gz yuzu-cbd1de38be4535eb200f171ebd64c9039e369c48.tar.xz yuzu-cbd1de38be4535eb200f171ebd64c9039e369c48.zip | |
made memory #define's enum to make debugging easier
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/src/mem_map.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/core/src/mem_map.h b/src/core/src/mem_map.h index c72e722df..e880503d2 100644 --- a/src/core/src/mem_map.h +++ b/src/core/src/mem_map.h | |||
| @@ -32,22 +32,28 @@ | |||
| 32 | 32 | ||
| 33 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 33 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 34 | 34 | ||
| 35 | #define MEM_BOOTROM_SIZE 0x00010000 ///< Bootrom (super secret code/data @ 0x8000) size | 35 | enum { |
| 36 | #define MEM_MPCORE_PRIV_SIZE 0x00002000 ///< MPCore private memory region size | 36 | MEM_BOOTROM_SIZE = 0x00010000, ///< Bootrom (super secret code/data @ 0x8000) size |
| 37 | #define MEM_VRAM_SIZE 0x00600000 ///< VRAM size | 37 | MEM_MPCORE_PRIV_SIZE = 0x00002000, ///< MPCore private memory region size |
| 38 | #define MEM_DSP_SIZE 0x00080000 ///< DSP memory size | 38 | MEM_VRAM_SIZE = 0x00600000, ///< VRAM size |
| 39 | #define MEM_AXI_WRAM_SIZE 0x00080000 ///< AXI WRAM size | 39 | MEM_DSP_SIZE = 0x00080000, ///< DSP memory size |
| 40 | #define MEM_FCRAM_SIZE 0x08000000 ///< FCRAM size... Really 0x07E00000, but power of 2 | 40 | MEM_AXI_WRAM_SIZE = 0x00080000, ///< AXI WRAM size |
| 41 | MEM_FCRAM_SIZE = 0x08000000, ///< FCRAM size... Really 0x07E00000, but power of 2 | ||
| 41 | // works much better | 42 | // works much better |
| 42 | #define MEM_SCRATCHPAD_SIZE 0x00004000 ///< Typical stack size - TODO: Read from exheader | 43 | MEM_SCRATCHPAD_SIZE = 0x00004000, ///< Typical stack size - TODO: Read from exheader |
| 43 | 44 | ||
| 44 | #define MEM_VRAM_MASK 0x007FFFFF | 45 | MEM_VRAM_MASK = 0x007FFFFF, |
| 45 | #define MEM_FCRAM_MASK (MEM_FCRAM_SIZE - 1) ///< FCRAM mask | 46 | MEM_FCRAM_MASK = (MEM_FCRAM_SIZE - 1), ///< FCRAM mask |
| 46 | #define MEM_SCRATCHPAD_MASK (MEM_SCRATCHPAD_SIZE - 1) ///< Scratchpad memory mask | 47 | MEM_SCRATCHPAD_MASK = (MEM_SCRATCHPAD_SIZE - 1), ///< Scratchpad memory mask |
| 47 | 48 | ||
| 48 | #define MEM_FCRAM_VADDR 0x08000000 | 49 | MEM_FCRAM_PADDR = 0x20000000, ///< FCRAM physical address |
| 49 | #define MEM_VRAM_VADDR 0x1F000000 | 50 | MEM_FCRAM_PADDR_END = (MEM_FCRAM_PADDR + MEM_FCRAM_SIZE), ///< FCRAM end of physical space |
| 50 | #define MEM_SCRATCHPAD_VADDR (0x10000000 - MEM_SCRATCHPAD_SIZE) ///< Scratchpad virtual address | 51 | MEM_FCRAM_VADDR = 0x08000000, ///< FCRAM virtual address |
| 52 | MEM_FCRAM_VADDR_END = (MEM_FCRAM_VADDR + MEM_FCRAM_SIZE), ///< FCRAM end of virtual space | ||
| 53 | |||
| 54 | MEM_VRAM_VADDR = 0x1F000000, | ||
| 55 | MEM_SCRATCHPAD_VADDR = (0x10000000 - MEM_SCRATCHPAD_SIZE), ///< Scratchpad virtual address | ||
| 56 | }; | ||
| 51 | 57 | ||
| 52 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 58 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 53 | 59 | ||