about summary refs log tree commit diff stats
path: root/src/dynarec/rv64/dynarec_rv64_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynarec/rv64/dynarec_rv64_helper.c')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_helper.c b/src/dynarec/rv64/dynarec_rv64_helper.c
index 4ae11186..ca0628fe 100644
--- a/src/dynarec/rv64/dynarec_rv64_helper.c
+++ b/src/dynarec/rv64/dynarec_rv64_helper.c
@@ -568,9 +568,9 @@ static void flagsCacheTransform(dynarec_rv64_t* dyn, int ninst, int s1)
 }
 
 void CacheTransform(dynarec_rv64_t* dyn, int ninst, int cacheupd, int s1, int s2, int s3) {
-    if(cacheupd&1)
-        fpuCacheTransform(dyn, ninst, s1, s2, s3);
     if(cacheupd&2)
+        fpuCacheTransform(dyn, ninst, s1, s2, s3);
+    if(cacheupd&1)
         flagsCacheTransform(dyn, ninst, s1);
 }