backend\A64\a32_interface.cpp: update Disassemble inteface

This commit is contained in:
SachinVin 2022-05-28 18:51:09 +05:30
parent d57e1f9010
commit 5aa60e72a3

View File

@ -313,14 +313,14 @@ void Jit::LoadContext(const Context& ctx) {
impl->jit_state.TransferJitState(ctx.impl->jit_state, reset_rsb);
}
std::string Jit::Disassemble() const {
std::string result;
std::vector<std::string> Jit::Disassemble() const {
std::vector<std::string> result;
#ifdef DYNARMIC_USE_LLVM
for (const u32* pos = reinterpret_cast<const u32*>(impl->block_of_code.GetCodeBegin());
reinterpret_cast<const u8*>(pos) < reinterpret_cast<const u8*>(impl->block_of_code.GetCodePtr()); pos += 1) {
fmt::print("0x{:02x} 0x{:02x} ", reinterpret_cast<u64>(pos), *pos);
fmt::print("{}", Common::DisassembleAArch64(*pos, reinterpret_cast<u64>(pos)));
result += Common::DisassembleAArch64(*pos, reinterpret_cast<u64>(pos));
result.push_back(Common::DisassembleAArch64(*pos, reinterpret_cast<u64>(pos)));
}
#endif
return result;