about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorxctan <xctan@cirno.icu>2024-01-11 16:12:39 +0000
committerGitHub <noreply@github.com>2024-01-11 17:12:39 +0100
commit328d5c6275b69edf336eac595fe2e41ab8410a65 (patch)
tree36a2a7f1b180a49270ce2b302137feb8c710e89b /src
parent19be6b5e176aedb51fa4a315c604cca4490f4b26 (diff)
downloadbox64-328d5c6275b69edf336eac595fe2e41ab8410a65.tar.gz
box64-328d5c6275b69edf336eac595fe2e41ab8410a65.zip
[RV64_DYNAREC] Fixed 66 0F B6 MOVZX opcode (#1196)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_660f.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_660f.c b/src/dynarec/rv64/dynarec_rv64_660f.c
index 59b2ad39..dd4ee93a 100644
--- a/src/dynarec/rv64/dynarec_rv64_660f.c
+++ b/src/dynarec/rv64/dynarec_rv64_660f.c
@@ -2094,6 +2094,7 @@ uintptr_t dynarec64_660F(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int
         case 0xB6:
             INST_NAME("MOVZX Gw, Eb");
             nextop = F8;
+            gd = xRAX+((nextop&0x38)>>3)+(rex.r<<3);
             if (MODREG) {
                 if (rex.rex) {
                     eb1 = xRAX + (nextop & 7) + (rex.b << 3);