diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/process.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index bb2673732..819d2cb0b 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -228,6 +228,8 @@ void Process::LoadModule(CodeSet module_, VAddr base_addr) { | |||
| 228 | MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeData); | 228 | MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeData); |
| 229 | MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeData); | 229 | MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeData); |
| 230 | 230 | ||
| 231 | code_memory_size += module_.memory->size(); | ||
| 232 | |||
| 231 | // Clear instruction cache in CPU JIT | 233 | // Clear instruction cache in CPU JIT |
| 232 | system.InvalidateCpuInstructionCaches(); | 234 | system.InvalidateCpuInstructionCaches(); |
| 233 | } | 235 | } |
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index ee559fe4c..16193ca56 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -250,6 +250,9 @@ private: | |||
| 250 | /// Size of the main thread's stack in bytes. | 250 | /// Size of the main thread's stack in bytes. |
| 251 | u64 main_thread_stack_size = 0; | 251 | u64 main_thread_stack_size = 0; |
| 252 | 252 | ||
| 253 | /// Size of the loaded code memory in bytes. | ||
| 254 | u64 code_memory_size = 0; | ||
| 255 | |||
| 253 | /// Current status of the process | 256 | /// Current status of the process |
| 254 | ProcessStatus status; | 257 | ProcessStatus status; |
| 255 | 258 | ||