Added initial support for function names from symbol table on the cpu with tracing, fix wrong ImageEnd on executables with MOD0, fix issue on the CPU on input elimination for instruction with more than one register store
This commit is contained in:
parent
e174100474
commit
950011c90f
20 changed files with 217 additions and 93 deletions
|
@ -39,14 +39,16 @@ namespace ChocolArm64.Translation
|
|||
private const int Tmp4Index = -4;
|
||||
private const int Tmp5Index = -5;
|
||||
|
||||
public AILEmitterCtx(ATranslator Translator, ABlock[] Graph, ABlock Root)
|
||||
public AILEmitterCtx(
|
||||
ATranslator Translator,
|
||||
ABlock[] Graph,
|
||||
ABlock Root,
|
||||
string SubName)
|
||||
{
|
||||
this.Translator = Translator;
|
||||
this.Graph = Graph;
|
||||
this.Root = Root;
|
||||
|
||||
string SubName = $"Sub{Root.Position:X16}";
|
||||
|
||||
Labels = new Dictionary<long, AILLabel>();
|
||||
|
||||
Emitter = new AILEmitter(Graph, Root, SubName);
|
||||
|
@ -92,6 +94,8 @@ namespace ChocolArm64.Translation
|
|||
}
|
||||
|
||||
CurrOp.Emitter(this);
|
||||
|
||||
ILBlock.Add(new AILBarrier());
|
||||
}
|
||||
|
||||
public bool TryOptEmitSubroutineCall()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue