summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorGravatar Lioncash2020-07-15 13:23:12 -0400
committerGravatar Lioncash2020-07-15 13:40:18 -0400
commit73bb87c06b19aa728b3542551bb0d74daac63f86 (patch)
treeec2d3a6acbdab0d821ad414082fbadc9f80632c6 /src/core/hle/kernel/process.h
parentkernel/handle_table: Remove usages of the global system instance (diff)
downloadyuzu-73bb87c06b19aa728b3542551bb0d74daac63f86.tar.gz
yuzu-73bb87c06b19aa728b3542551bb0d74daac63f86.tar.xz
yuzu-73bb87c06b19aa728b3542551bb0d74daac63f86.zip
kernel/process: Move name and system context to the bottom of the member list
These aren't directly important or commonly used within the process, so we can move these to the bottom to allow everything else to be more likely to be within a cache line.
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 9dabe3568..f45cb5674 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -382,12 +382,6 @@ private:
382 /// List of threads waiting for a condition variable 382 /// List of threads waiting for a condition variable
383 std::unordered_map<VAddr, std::list<std::shared_ptr<Thread>>> cond_var_threads; 383 std::unordered_map<VAddr, std::list<std::shared_ptr<Thread>>> cond_var_threads;
384 384
385 /// System context
386 Core::System& system;
387
388 /// Name of this process
389 std::string name;
390
391 /// Address of the top of the main thread's stack 385 /// Address of the top of the main thread's stack
392 VAddr main_thread_stack_top{}; 386 VAddr main_thread_stack_top{};
393 387
@@ -399,6 +393,12 @@ private:
399 393
400 /// Process total image size 394 /// Process total image size
401 std::size_t image_size{}; 395 std::size_t image_size{};
396
397 /// Name of this process
398 std::string name;
399
400 /// System context
401 Core::System& system;
402}; 402};
403 403
404} // namespace Kernel 404} // namespace Kernel