about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-04-01 18:09:14 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-04-01 18:09:14 +0200
commitbc23a90ef74eb9f628f71aafe10bc23912fd56e4 (patch)
tree893267e91c338b819e3f408e7dbb80385fc98145
parent2070b5396703705b3959df1dd31c291947a84f99 (diff)
downloadbox64-bc23a90ef74eb9f628f71aafe10bc23912fd56e4.tar.gz
box64-bc23a90ef74eb9f628f71aafe10bc23912fd56e4.zip
Try to add 0F AE /7 CLFLUSH opcode
-rw-r--r--src/emu/x64run0f.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 69c5034d..add4ba97 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -801,6 +801,11 @@ int Run0F(x64emu_t *emu, rex_t rex)
                 case 3:                 /* STMXCSR Md */

                     ED->dword[0] = emu->mxcsr;

                     break;

+                case 7:                 /* CLFLUSH Ed */

+                    #ifdef DYNAREC

+                    cleanDBFromAddressRange((uintptr_t)ED, 8, 0);

+                    #endif

+                    break;

                 default:

                     return 1;

             }