kernel/process: Store the total size of the code memory loaded
This will be necessary to properly report the used memory size in svcGetInfo.
This commit is contained in:
parent
9a748d6f28
commit
4ee615b15a
2 changed files with 5 additions and 0 deletions
|
@ -228,6 +228,8 @@ void Process::LoadModule(CodeSet module_, VAddr base_addr) {
|
|||
MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeData);
|
||||
MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeData);
|
||||
|
||||
code_memory_size += module_.memory->size();
|
||||
|
||||
// Clear instruction cache in CPU JIT
|
||||
system.InvalidateCpuInstructionCaches();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue