diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2023-01-23 19:37:53 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-23 22:37:53 +0000 |
| commit | a1a4771ac1de95f2410c7fb8dfaf4a5986e5ebc6 (patch) | |
| tree | b79abb40024184b18b2ff821490de4ad5e7b9683 /ARMeilleure/Translation/PTC | |
| parent | 2fd819613ffcede43562b333602d17fa79c9751d (diff) | |
Remove use of GetFunctionPointerForDelegate to get JIT cache function pointer (#4337)
* Remove use of GetFunctionPointerForDelegate to get JIT cache function pointer
* Rename FuncPtr to FuncPointer
Diffstat (limited to 'ARMeilleure/Translation/PTC')
| -rw-r--r-- | ARMeilleure/Translation/PTC/Ptc.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ARMeilleure/Translation/PTC/Ptc.cs b/ARMeilleure/Translation/PTC/Ptc.cs index aeb5868c..de2294b2 100644 --- a/ARMeilleure/Translation/PTC/Ptc.cs +++ b/ARMeilleure/Translation/PTC/Ptc.cs @@ -745,9 +745,9 @@ namespace ARMeilleure.Translation.PTC bool highCq) { var cFunc = new CompiledFunction(code, unwindInfo, RelocInfo.Empty); - var gFunc = cFunc.Map<GuestFunction>(); + var gFunc = cFunc.MapWithPointer<GuestFunction>(out IntPtr gFuncPointer); - return new TranslatedFunction(gFunc, callCounter, guestSize, highCq); + return new TranslatedFunction(gFunc, gFuncPointer, callCounter, guestSize, highCq); } private void UpdateInfo(InfoEntry infoEntry) |
