aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Instructions/NativeInterface.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-02-17 22:53:18 -0300
committerGitHub <noreply@github.com>2022-02-18 02:53:18 +0100
commit92d166ecb7e5b29a27bffd77754d8e592435ee6b (patch)
tree0c3d078c1487d6d596ed45deacca29c7d2d7d300 /ARMeilleure/Instructions/NativeInterface.cs
parent72e543e946610dc80e3d52290e4bea837097a070 (diff)
Enable CPU JIT cache invalidation (#2965)1.1.44
* Enable CPU JIT cache invalidation * Invalidate cache on IC IVAU
Diffstat (limited to 'ARMeilleure/Instructions/NativeInterface.cs')
-rw-r--r--ARMeilleure/Instructions/NativeInterface.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ARMeilleure/Instructions/NativeInterface.cs b/ARMeilleure/Instructions/NativeInterface.cs
index 02a22fa6..0b76f681 100644
--- a/ARMeilleure/Instructions/NativeInterface.cs
+++ b/ARMeilleure/Instructions/NativeInterface.cs
@@ -242,6 +242,11 @@ namespace ARMeilleure.Instructions
return (ulong)function.FuncPtr.ToInt64();
}
+ public static void InvalidateCacheLine(ulong address)
+ {
+ Context.Translator.InvalidateJitCacheRegion(address, InstEmit.DczSizeInBytes);
+ }
+
public static bool CheckSynchronization()
{
Statistics.PauseTimer();