about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-07-12 10:52:46 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-07-12 10:52:46 +0200
commitcf5241ceb302e2808813bdfe23651bc8f75b53d6 (patch)
tree622c6888396c4e2733a041f077c5944bf989eb76
parent78460724ea0770f4c5b85ec117273d4a3d54b230 (diff)
downloadbox64-cf5241ceb302e2808813bdfe23651bc8f75b53d6.tar.gz
box64-cf5241ceb302e2808813bdfe23651bc8f75b53d6.zip
[ARM64_DYNAREC] Added 0F 00 /0 opcode
-rw-r--r--src/dynarec/arm64/dynarec_arm64_0f.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/dynarec/arm64/dynarec_arm64_0f.c b/src/dynarec/arm64/dynarec_arm64_0f.c
index 927a06d4..cb66b319 100644
--- a/src/dynarec/arm64/dynarec_arm64_0f.c
+++ b/src/dynarec/arm64/dynarec_arm64_0f.c
@@ -56,7 +56,27 @@ uintptr_t dynarec64_0F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nin
     MAYUSE(cacheupd);

 

     switch(opcode) {

-

+        case 0x00:

+            if(rex.is32bits) {

+                nextop = F8;

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

+                    case 0:

+                        INST_NAME("SLDT EW");

+                        if(MODREG) {

+                            ed = TO_NAT((nextop & 7) + (rex.b << 3));

+                            MOV32w(ed, 0);

+                        } else {

+                            addr = geted(dyn, addr, ninst, nextop, &wback, x2, &fixedaddress, NULL, 0, 0, rex, NULL, 0, 0);

+                            STRH_U12(xZR, wback, 0);

+                        }

+                        break;

+                    default:

+                        DEFAULT;

+                }

+            } else {

+                DEFAULT;

+            }

+            break;

         case 0x01:

             // TODO:, /0 is SGDT. While 0F 01 D0 is XGETBV, etc...

             nextop = F8;