33 lines
958 B
C
Raw Normal View History

/* This file is part of the dynarmic project.
* Copyright (c) 2016 MerryMage
* This software may be used and distributed according to the terms of the GNU
* General Public License version 2 or any later version.
*/
#pragma once
#include "common/common_types.h"
namespace Dynarmic {
namespace IR {
class Block;
class LocationDescriptor;
} // namespace IR
namespace Arm {
struct LocationDescriptor;
using MemoryReadCodeFuncType = u32 (*)(u32 vaddr);
2016-08-12 18:17:31 +01:00
/**
* This function translates instructions in memory into our intermediate representation.
* @param descriptor The starting location of the basic block. Includes information like PC, Thumb state, &c.
* @param memory_read_code The function we should use to read emulated memory.
2016-08-12 18:17:31 +01:00
* @return A translated basic block in the intermediate representation.
*/
IR::Block Translate(IR::LocationDescriptor descriptor, MemoryReadCodeFuncType memory_read_code);
} // namespace Arm
} // namespace Dynarmic