about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-05-28 11:00:44 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-05-28 11:00:44 +0200
commit085239ef4a5d76ae4cb77af5d4bb9d3f743bc6f8 (patch)
tree89d0ae48383d437f21907d1fd4644bebe2a6484b /src/emu
parentdf61d561f6aaa5842b223bc88fbb24f4719c61f0 (diff)
downloadbox64-085239ef4a5d76ae4cb77af5d4bb9d3f743bc6f8.tar.gz
box64-085239ef4a5d76ae4cb77af5d4bb9d3f743bc6f8.zip
Added 0F 0D /1 opcode ([DYNAREC] too)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64run0f.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index 0c7d53ba..7426a4af 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -53,6 +53,18 @@ int Run0F(x64emu_t *emu, rex_t rex)
             emit_signal(emu, SIGILL, (void*)R_RIP, 0);

             break;

 

+        case 0x0D:

+            nextop = F8;

+            GETED(0);

+            switch((nextop>>3)&7) {

+                case 1: //PREFETCHW

+                    __builtin_prefetch((void*)ED, 1, 0);

+                    break;

+                default:    //???

+                    return 1;

+            }

+            break;

+

         case 0x10:                      /* MOVUPS Gx,Ex */

             nextop = F8;

             GETEX(0);