From 5aa60e72a3e60c3efa3bd6faec70d552dd2eb003 Mon Sep 17 00:00:00 2001 From: SachinVin Date: Sat, 28 May 2022 18:51:09 +0530 Subject: [PATCH] backend\A64\a32_interface.cpp: update `Disassemble` inteface --- src/dynarmic/backend/A64/a32_interface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dynarmic/backend/A64/a32_interface.cpp b/src/dynarmic/backend/A64/a32_interface.cpp index bffc96f9..bfa511ec 100644 --- a/src/dynarmic/backend/A64/a32_interface.cpp +++ b/src/dynarmic/backend/A64/a32_interface.cpp @@ -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 Jit::Disassemble() const { + std::vector result; #ifdef DYNARMIC_USE_LLVM for (const u32* pos = reinterpret_cast(impl->block_of_code.GetCodeBegin()); reinterpret_cast(pos) < reinterpret_cast(impl->block_of_code.GetCodePtr()); pos += 1) { fmt::print("0x{:02x} 0x{:02x} ", reinterpret_cast(pos), *pos); fmt::print("{}", Common::DisassembleAArch64(*pos, reinterpret_cast(pos))); - result += Common::DisassembleAArch64(*pos, reinterpret_cast(pos)); + result.push_back(Common::DisassembleAArch64(*pos, reinterpret_cast(pos))); } #endif return result;