diff --git a/src/backend_x64/interface_x64.cpp b/src/backend_x64/interface_x64.cpp index 23595746..76ee0bad 100644 --- a/src/backend_x64/interface_x64.cpp +++ b/src/backend_x64/interface_x64.cpp @@ -54,7 +54,7 @@ struct Jit::Impl { return routines.RunCode(&jit_state, code_ptr, cycle_count); } - std::string Disassemble(Arm::LocationDescriptor descriptor) { + std::string Disassemble(const Arm::LocationDescriptor& descriptor) { auto block = GetBasicBlock(descriptor); std::string result = Common::StringFromFormat("address: %p\nsize: %zu bytes\n", block->code_ptr, block->size); @@ -174,7 +174,7 @@ void Jit::SetFpscr(u32 value) const { return impl->jit_state.SetFpscr(value); } -std::string Jit::Disassemble(Arm::LocationDescriptor descriptor) { +std::string Jit::Disassemble(const Arm::LocationDescriptor& descriptor) { return impl->Disassemble(descriptor); } diff --git a/src/interface/interface.h b/src/interface/interface.h index aa2f32cb..9a3bcace 100644 --- a/src/interface/interface.h +++ b/src/interface/interface.h @@ -8,11 +8,14 @@ #include -#include "frontend/arm_types.h" #include "common/common_types.h" namespace Dynarmic { +namespace Arm { +struct LocationDescriptor; +} + class Jit; /// These function pointers may be inserted into compiled code. @@ -82,7 +85,7 @@ public: return is_executing; } - std::string Disassemble(Arm::LocationDescriptor descriptor); + std::string Disassemble(const Arm::LocationDescriptor& descriptor); private: bool halt_requested = false;