summaryrefslogtreecommitdiffstats
path: root/src/core/arm
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-28 00:12:41 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:35:20 +0200
commit04e0f8776c26930d7dc8015e53914b11bf1929c1 (patch)
tree4a8288d6bf8655a2ec0595fdc6d41a3037c5fcad /src/core/arm
parentSVC: Correct races on physical core switching. (diff)
downloadyuzu-04e0f8776c26930d7dc8015e53914b11bf1929c1.tar
yuzu-04e0f8776c26930d7dc8015e53914b11bf1929c1.tar.gz
yuzu-04e0f8776c26930d7dc8015e53914b11bf1929c1.tar.bz2
yuzu-04e0f8776c26930d7dc8015e53914b11bf1929c1.tar.lz
yuzu-04e0f8776c26930d7dc8015e53914b11bf1929c1.tar.xz
yuzu-04e0f8776c26930d7dc8015e53914b11bf1929c1.tar.zst
yuzu-04e0f8776c26930d7dc8015e53914b11bf1929c1.zip
Diffstat (limited to 'src/core/arm')
-rw-r--r--src/core/arm/arm_interface.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index 87a1c29cc..be9f3703a 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -6,6 +6,7 @@
#include <array>
#include <vector>
+#include <mutex>
#include "common/common_types.h"
namespace Common {
@@ -164,6 +165,14 @@ public:
std::string name;
};
+ void Lock() {
+ guard.lock();
+ }
+
+ void Unlock() {
+ guard.unlock();
+ }
+
std::vector<BacktraceEntry> GetBacktrace() const;
/// fp (= r29) points to the last frame record.
@@ -178,6 +187,7 @@ protected:
/// System context that this ARM interface is running under.
System& system;
CPUInterruptHandler& interrupt_handler;
+ std::mutex guard;
};
} // namespace Core