diff options
author | merry <git@mary.rs> | 2022-04-10 16:46:29 +0200 |
---|---|---|
committer | merry <git@mary.rs> | 2022-04-10 16:46:29 +0200 |
commit | 59cbeb3e1ba461f3b138406081e2e12406f7445e (patch) | |
tree | 1a623ecac00e89941608b91772515b3a5ddbf465 /src/core/arm/dynarmic/arm_dynarmic_64.h | |
parent | Merge pull request #8149 from liamwhite/front-face (diff) | |
download | yuzu-59cbeb3e1ba461f3b138406081e2e12406f7445e.tar yuzu-59cbeb3e1ba461f3b138406081e2e12406f7445e.tar.gz yuzu-59cbeb3e1ba461f3b138406081e2e12406f7445e.tar.bz2 yuzu-59cbeb3e1ba461f3b138406081e2e12406f7445e.tar.lz yuzu-59cbeb3e1ba461f3b138406081e2e12406f7445e.tar.xz yuzu-59cbeb3e1ba461f3b138406081e2e12406f7445e.tar.zst yuzu-59cbeb3e1ba461f3b138406081e2e12406f7445e.zip |
Diffstat (limited to 'src/core/arm/dynarmic/arm_dynarmic_64.h')
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_64.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.h b/src/core/arm/dynarmic/arm_dynarmic_64.h index 58bc7fbec..86018f196 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_64.h +++ b/src/core/arm/dynarmic/arm_dynarmic_64.h @@ -4,6 +4,7 @@ #pragma once +#include <atomic> #include <memory> #include <unordered_map> @@ -74,7 +75,10 @@ private: std::size_t core_index; DynarmicExclusiveMonitor& exclusive_monitor; - std::shared_ptr<Dynarmic::A64::Jit> jit; + std::shared_ptr<Dynarmic::A64::Jit> null_jit; + + // A raw pointer here is fine; we never delete Jit instances. + std::atomic<Dynarmic::A64::Jit*> jit; // SVC callback u32 svc_swi{}; |