New JIT cache for platforms that enforce W^X, currently unused

This commit is contained in:
Gabriel A 2023-12-26 23:12:44 -03:00
parent 257df61a2e
commit 36e1e16f15
14 changed files with 749 additions and 31 deletions

View file

@ -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)