diff options
author | Liam <[email protected]> | 2023-09-14 14:34:05 -0400 |
---|---|---|
committer | Liam <[email protected]> | 2023-09-14 16:44:15 -0400 |
commit | 3ef9673360089b1729ff174eefad9195d8eaf97f (patch) | |
tree | 796d1f7b918f0db4c8a2024388dbb4c51c831464 /src/core/hle/kernel/k_process.cpp | |
parent | 04352a9aef52fde375950df8577debbb896c2ae1 (diff) | |
download | yuzu-mainline-3ef9673360089b1729ff174eefad9195d8eaf97f.tar.gz yuzu-mainline-3ef9673360089b1729ff174eefad9195d8eaf97f.zip |
core: improve debug workflow
Diffstat (limited to 'src/core/hle/kernel/k_process.cpp')
-rw-r--r-- | src/core/hle/kernel/k_process.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index 703049ede..4a099286b 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp @@ -96,6 +96,7 @@ Result KProcess::Initialize(KProcess* process, Core::System& system, std::string process->m_is_suspended = false; process->m_schedule_count = 0; process->m_is_handle_table_initialized = false; + process->m_is_hbl = false; // Open a reference to the resource limit. process->m_resource_limit->Open(); @@ -351,12 +352,14 @@ Result KProcess::SetActivity(ProcessActivity activity) { R_SUCCEED(); } -Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std::size_t code_size) { +Result KProcess::LoadFromMetadata(const FileSys::ProgramMetadata& metadata, std::size_t code_size, + bool is_hbl) { m_program_id = metadata.GetTitleID(); m_ideal_core = metadata.GetMainThreadCore(); m_is_64bit_process = metadata.Is64BitProgram(); m_system_resource_size = metadata.GetSystemResourceSize(); m_image_size = code_size; + m_is_hbl = is_hbl; if (metadata.GetAddressSpaceType() == FileSys::ProgramAddressSpaceType::Is39Bit) { // For 39-bit processes, the ASLR region starts at 0x800'0000 and is ~512GiB large. |