From 411e804b0d3d277e417b609fb3894d5ee3712886 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sat, 6 Aug 2016 19:59:09 +0100 Subject: [PATCH] Interface: Forward declare Arm::LocationDescriptor --- src/backend_x64/interface_x64.cpp | 4 ++-- src/interface/interface.h | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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;