diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-07-12 10:52:46 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-07-12 10:52:46 +0200 |
| commit | cf5241ceb302e2808813bdfe23651bc8f75b53d6 (patch) | |
| tree | 622c6888396c4e2733a041f077c5944bf989eb76 | |
| parent | 78460724ea0770f4c5b85ec117273d4a3d54b230 (diff) | |
| download | box64-cf5241ceb302e2808813bdfe23651bc8f75b53d6.tar.gz box64-cf5241ceb302e2808813bdfe23651bc8f75b53d6.zip | |
[ARM64_DYNAREC] Added 0F 00 /0 opcode
| -rw-r--r-- | src/dynarec/arm64/dynarec_arm64_0f.c | 22 |
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; |