diff options
author | Liam <byteslice@airmail.cc> | 2022-04-21 02:17:48 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-04-21 03:39:42 +0200 |
commit | 0ca4dff62c61570828ec563d6200ca47b3d02569 (patch) | |
tree | 506ade8f6772141c95261168f8ae8f3b71ffbf3a /src/core/arm/dynarmic/arm_dynarmic_64.h | |
parent | Update dynarmic (diff) | |
download | yuzu-0ca4dff62c61570828ec563d6200ca47b3d02569.tar yuzu-0ca4dff62c61570828ec563d6200ca47b3d02569.tar.gz yuzu-0ca4dff62c61570828ec563d6200ca47b3d02569.tar.bz2 yuzu-0ca4dff62c61570828ec563d6200ca47b3d02569.tar.lz yuzu-0ca4dff62c61570828ec563d6200ca47b3d02569.tar.xz yuzu-0ca4dff62c61570828ec563d6200ca47b3d02569.tar.zst yuzu-0ca4dff62c61570828ec563d6200ca47b3d02569.zip |
Diffstat (limited to 'src/core/arm/dynarmic/arm_dynarmic_64.h')
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_64.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.h b/src/core/arm/dynarmic/arm_dynarmic_64.h index 86018f196..78773e293 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_64.h +++ b/src/core/arm/dynarmic/arm_dynarmic_64.h @@ -33,6 +33,7 @@ public: void SetPC(u64 pc) override; u64 GetPC() const override; + u64 GetSP() const override; u64 GetReg(int index) const override; void SetReg(int index, u64 value) override; u128 GetVectorReg(int index) const override; @@ -60,10 +61,17 @@ public: void PageTableChanged(Common::PageTable& new_page_table, std::size_t new_address_space_size_in_bits) override; + static std::vector<BacktraceEntry> GetBacktraceFromContext(System& system, + const ThreadContext64& ctx); + + std::vector<BacktraceEntry> GetBacktrace() const override; + private: std::shared_ptr<Dynarmic::A64::Jit> MakeJit(Common::PageTable* page_table, std::size_t address_space_bits) const; + static std::vector<BacktraceEntry> GetBacktrace(Core::System& system, u64 fp, u64 lr); + using JitCacheKey = std::pair<Common::PageTable*, std::size_t>; using JitCacheType = std::unordered_map<JitCacheKey, std::shared_ptr<Dynarmic::A64::Jit>, Common::PairHash>; |