diff options
author | Mai M <mathew1800@gmail.com> | 2022-04-21 08:51:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 08:51:03 +0200 |
commit | fd409a92473726600a6605d5cfb782c38c3de72d (patch) | |
tree | 7f1e82d05b97420ee8f652439362774b0f15bc3d /src/core/arm/dynarmic/arm_dynarmic_64.h | |
parent | Merge pull request #8231 from german77/warning (diff) | |
parent | core/arm: separate backtrace collection (diff) | |
download | yuzu-fd409a92473726600a6605d5cfb782c38c3de72d.tar yuzu-fd409a92473726600a6605d5cfb782c38c3de72d.tar.gz yuzu-fd409a92473726600a6605d5cfb782c38c3de72d.tar.bz2 yuzu-fd409a92473726600a6605d5cfb782c38c3de72d.tar.lz yuzu-fd409a92473726600a6605d5cfb782c38c3de72d.tar.xz yuzu-fd409a92473726600a6605d5cfb782c38c3de72d.tar.zst yuzu-fd409a92473726600a6605d5cfb782c38c3de72d.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>; |