mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-11 01:19:59 +01:00
26 lines
871 B
C++
26 lines
871 B
C++
/* 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 "frontend/arm_types.h"
|
|
#include "frontend/ir/ir.h"
|
|
|
|
namespace Dynarmic {
|
|
namespace Arm {
|
|
|
|
using MemoryRead32FuncType = u32 (*)(u32 vaddr);
|
|
|
|
/**
|
|
* 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_32 The function we should use to read emulated memory.
|
|
* @return A translated basic block in the intermediate representation.
|
|
*/
|
|
IR::Block Translate(LocationDescriptor descriptor, MemoryRead32FuncType memory_read_32);
|
|
|
|
} // namespace Arm
|
|
} // namespace Dynarmic
|