mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-30 12:26:25 +02:00
New JIT cache for platforms that enforce W^X, currently unused
This commit is contained in:
parent
257df61a2e
commit
36e1e16f15
14 changed files with 749 additions and 31 deletions
|
@ -61,11 +61,9 @@ namespace Ryujinx.Cpu.LightningJit
|
|||
return GetContext().CntpctEl0;
|
||||
}
|
||||
|
||||
public static ulong GetFunctionAddress(ulong address)
|
||||
public static ulong GetFunctionAddress(IntPtr framePointer, ulong address)
|
||||
{
|
||||
TranslatedFunction function = Context.Translator.GetOrTranslate(address, GetContext().ExecutionMode);
|
||||
|
||||
return (ulong)function.FuncPointer.ToInt64();
|
||||
return (ulong)Context.Translator.GetOrTranslatePointer(framePointer, address, GetContext().ExecutionMode);
|
||||
}
|
||||
|
||||
public static void InvalidateCacheLine(ulong address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue