Interface: Forward declare Arm::LocationDescriptor

This commit is contained in:
MerryMage 2016-08-06 19:59:09 +01:00
parent 9ab7626374
commit 411e804b0d
2 changed files with 7 additions and 4 deletions

View file

@ -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);
}

View file

@ -8,11 +8,14 @@
#include <memory>
#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;