mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-25 16:07:10 +02:00
bunch of stuff don't push this monstrosity anywhere
actual stuff don't push this monstrosity anywhere
This commit is contained in:
parent
259f5da0fb
commit
59d6ceb9ee
31 changed files with 513 additions and 77 deletions
|
@ -112,6 +112,8 @@ namespace ARMeilleure.Translation
|
|||
Debug.Assert(Functions.Count == 0);
|
||||
_ptc.LoadTranslations(this);
|
||||
_ptc.MakeAndSaveTranslations(this);
|
||||
|
||||
JitCache.RunDeferredRxProtects();
|
||||
}
|
||||
|
||||
_ptc.Profiler.Start();
|
||||
|
@ -250,7 +252,7 @@ namespace ARMeilleure.Translation
|
|||
}
|
||||
}
|
||||
|
||||
internal TranslatedFunction Translate(ulong address, ExecutionMode mode, bool highCq, bool singleStep = false)
|
||||
internal TranslatedFunction Translate(ulong address, ExecutionMode mode, bool highCq, bool singleStep = false, bool deferProtect = false)
|
||||
{
|
||||
var context = new ArmEmitterContext(
|
||||
Memory,
|
||||
|
@ -308,7 +310,7 @@ namespace ARMeilleure.Translation
|
|||
_ptc.WriteCompiledFunction(address, funcSize, hash, highCq, compiledFunc);
|
||||
}
|
||||
|
||||
GuestFunction func = compiledFunc.MapWithPointer<GuestFunction>(out IntPtr funcPointer);
|
||||
GuestFunction func = compiledFunc.MapWithPointer<GuestFunction>(out IntPtr funcPointer, deferProtect);
|
||||
|
||||
Allocators.ResetAll();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue