Add on translation call counting

This commit is contained in:
FICTURE7 2021-04-09 20:49:15 +04:00
parent 82582497a7
commit 98ac020097
7 changed files with 141 additions and 53 deletions

View file

@ -1,3 +1,4 @@
using ARMeilleure.Common;
using ARMeilleure.Decoders;
using ARMeilleure.Instructions;
using ARMeilleure.IntermediateRepresentation;
@ -41,18 +42,26 @@ namespace ARMeilleure.Translation
public IMemoryManager Memory { get; }
public JumpTable JumpTable { get; }
public EntryTable<byte> CountTable { get; }
public ulong EntryAddress { get; }
public bool HighCq { get; }
public Aarch32Mode Mode { get; }
public ArmEmitterContext(IMemoryManager memory, JumpTable jumpTable, ulong entryAddress, bool highCq, Aarch32Mode mode)
public ArmEmitterContext(
IMemoryManager memory,
JumpTable jumpTable,
EntryTable<byte> countTable,
ulong entryAddress,
bool highCq,
Aarch32Mode mode)
{
Memory = memory;
JumpTable = jumpTable;
Memory = memory;
JumpTable = jumpTable;
CountTable = countTable;
EntryAddress = entryAddress;
HighCq = highCq;
Mode = mode;
HighCq = highCq;
Mode = mode;
_labels = new Dictionary<ulong, Operand>();
}