mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-02 04:34:43 +01:00
A64: Add Disassemble method
This commit is contained in:
parent
cc0eb18a0b
commit
bafb39ebc5
8 changed files with 98 additions and 32 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include "backend_x64/a64_jitstate.h"
|
||||
#include "backend_x64/block_of_code.h"
|
||||
#include "backend_x64/devirtualize.h"
|
||||
#include "backend_x64/disassemble_x64.h"
|
||||
#include "backend_x64/jitstate_info.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/scope_exit.h"
|
||||
|
|
@ -160,6 +161,10 @@ public:
|
|||
return is_executing;
|
||||
}
|
||||
|
||||
std::string Disassemble() const {
|
||||
return DisassembleX64(block_of_code.GetCodeBegin(), block_of_code.getCurr());
|
||||
}
|
||||
|
||||
private:
|
||||
static CodePtr GetCurrentBlockThunk(void* thisptr) {
|
||||
Jit::Impl* this_ = reinterpret_cast<Jit::Impl*>(thisptr);
|
||||
|
|
@ -318,4 +323,8 @@ bool Jit::IsExecuting() const {
|
|||
return impl->IsExecuting();
|
||||
}
|
||||
|
||||
std::string Jit::Disassemble() const {
|
||||
return impl->Disassemble();
|
||||
}
|
||||
|
||||
} // namespace Dynarmic::A64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue