Browse Source

kernel/vm_manager: Amend flag values for CodeMutable

This should actually be using the data flags, rather than the code
flags.
nce_cpp
Lioncash 7 years ago
parent
commit
465f301ce0
  1. 2
      src/core/hle/kernel/vm_manager.h

2
src/core/hle/kernel/vm_manager.h

@ -166,7 +166,7 @@ enum class MemoryState : u32 {
Io = 0x01 | FlagMapped,
Normal = 0x02 | FlagMapped | FlagQueryPhysicalAddressAllowed,
CodeStatic = 0x03 | CodeFlags | FlagMapProcess,
CodeMutable = 0x04 | CodeFlags | FlagMapProcess | FlagCodeMemory,
CodeMutable = 0x04 | DataFlags | FlagMapProcess | FlagCodeMemory,
Heap = 0x05 | DataFlags | FlagCodeMemory,
Shared = 0x06 | FlagMapped | FlagMemoryPoolAllocated,
ModuleCodeStatic = 0x08 | CodeFlags | FlagModule | FlagMapProcess,

Loading…
Cancel
Save