diff options
| author | 2018-12-27 19:58:36 -0500 | |
|---|---|---|
| committer | 2018-12-27 19:58:36 -0500 | |
| commit | 19bfbb28ced455ab1bbdbe63abde0c91c1d6c69f (patch) | |
| tree | 7945224fc7f81cc431899ca023cbd56f5cf232e3 | |
| parent | Merge pull request #1953 from lioncash/mem (diff) | |
| parent | file_sys/program_metadata: Print out more descriptive address space descriptions (diff) | |
| download | yuzu-19bfbb28ced455ab1bbdbe63abde0c91c1d6c69f.tar.gz yuzu-19bfbb28ced455ab1bbdbe63abde0c91c1d6c69f.tar.xz yuzu-19bfbb28ced455ab1bbdbe63abde0c91c1d6c69f.zip | |
Merge pull request #1954 from lioncash/npdm
file_sys/program_metadata: Print out more descriptive address space descriptions
| -rw-r--r-- | src/core/file_sys/program_metadata.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/file_sys/program_metadata.cpp b/src/core/file_sys/program_metadata.cpp index e90c8c2de..d3e00437f 100644 --- a/src/core/file_sys/program_metadata.cpp +++ b/src/core/file_sys/program_metadata.cpp | |||
| @@ -92,16 +92,20 @@ void ProgramMetadata::Print() const { | |||
| 92 | LOG_DEBUG(Service_FS, " > 64-bit instructions: {}", | 92 | LOG_DEBUG(Service_FS, " > 64-bit instructions: {}", |
| 93 | npdm_header.has_64_bit_instructions ? "YES" : "NO"); | 93 | npdm_header.has_64_bit_instructions ? "YES" : "NO"); |
| 94 | 94 | ||
| 95 | auto address_space = "Unknown"; | 95 | const char* address_space = "Unknown"; |
| 96 | switch (npdm_header.address_space_type) { | 96 | switch (npdm_header.address_space_type) { |
| 97 | case ProgramAddressSpaceType::Is36Bit: | 97 | case ProgramAddressSpaceType::Is36Bit: |
| 98 | address_space = "64-bit (36-bit address space)"; | ||
| 99 | break; | ||
| 98 | case ProgramAddressSpaceType::Is39Bit: | 100 | case ProgramAddressSpaceType::Is39Bit: |
| 99 | address_space = "64-bit"; | 101 | address_space = "64-bit (39-bit address space)"; |
| 100 | break; | 102 | break; |
| 101 | case ProgramAddressSpaceType::Is32Bit: | 103 | case ProgramAddressSpaceType::Is32Bit: |
| 102 | case ProgramAddressSpaceType::Is32BitNoMap: | ||
| 103 | address_space = "32-bit"; | 104 | address_space = "32-bit"; |
| 104 | break; | 105 | break; |
| 106 | case ProgramAddressSpaceType::Is32BitNoMap: | ||
| 107 | address_space = "32-bit (no map region)"; | ||
| 108 | break; | ||
| 105 | } | 109 | } |
| 106 | 110 | ||
| 107 | LOG_DEBUG(Service_FS, " > Address space: {}\n", address_space); | 111 | LOG_DEBUG(Service_FS, " > Address space: {}\n", address_space); |