From 57d6539292327fef86cb7e765c95cbedebec5f29 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 6 Mar 2021 14:16:52 +0100 Subject: Added (partial) 0F AE (M/S/L)FENCE opcodes --- src/emu/x64run0f.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src') diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c index 50867d5a..6c68434f 100644 --- a/src/emu/x64run0f.c +++ b/src/emu/x64run0f.c @@ -84,6 +84,23 @@ int Run0F(x64emu_t *emu, rex_t rex) my_cpuid(emu, tmp32u); break; + case 0xAE: /* Grp Ed (SSE) */ + nextop = F8; + if((nextop&0xF8)==0xE8) { + return 0; /* LFENCE */ + } + if((nextop&0xF8)==0xF0) { + return 0; /* MFENCE */ + } + if((nextop&0xF8)==0xF8) { + return 0; /* SFENCE */ + } + GETED; + switch((nextop>>3)&7) { + default: + return 1; + } + break; case 0xAF: /* IMUL Gd,Ed */ nextop = F8; GETED; -- cgit 1.4.1