aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-01 12:14:17 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 11:35:58 -0400
commitdb60ca2704b15d8d31e58185a583e6fbe4189f53 (patch)
treec9553bb3f1693e430054695737d2f87ba4b58955 /src/core/hle/kernel/thread.h
parent7b3b33a2e64925375dc46619a407b101bcdd93fb (diff)
General: Move ARM_Interface into Threads.
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index f998890c4b..c08fc3a894 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -21,6 +21,7 @@ class Fiber;
}
namespace Core {
+class ARM_Interface;
class System;
} // namespace Core
@@ -271,6 +272,10 @@ public:
void SetSynchronizationResults(SynchronizationObject* object, ResultCode result);
+ Core::ARM_Interface& ArmInterface();
+
+ const Core::ARM_Interface& ArmInterface() const;
+
SynchronizationObject* GetSignalingObject() const {
return signaling_object;
}
@@ -617,9 +622,10 @@ private:
void AdjustSchedulingOnAffinity(u64 old_affinity_mask, s32 old_core);
+ Common::SpinLock context_guard{};
ThreadContext32 context_32{};
ThreadContext64 context_64{};
- Common::SpinLock context_guard{};
+ std::unique_ptr<Core::ARM_Interface> arm_interface{};
std::shared_ptr<Common::Fiber> host_context{};
u64 thread_id = 0;