From 92d166ecb7e5b29a27bffd77754d8e592435ee6b Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 17 Feb 2022 22:53:18 -0300 Subject: Enable CPU JIT cache invalidation (#2965) * Enable CPU JIT cache invalidation * Invalidate cache on IC IVAU --- ARMeilleure/Instructions/NativeInterface.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ARMeilleure/Instructions/NativeInterface.cs') 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(); -- cgit v1.2.3