about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2023-03-23 15:50:24 +0800
committerGitHub <noreply@github.com>2023-03-23 08:50:24 +0100
commita42322be998494490918884a9bf564a8cff6a5fc (patch)
tree706bde794380077308af7ed315b170438c9ff25b /src
parent6d8de238a0d42ddd7f6c1d2da41e00cc90dbce65 (diff)
downloadbox64-a42322be998494490918884a9bf564a8cff6a5fc.tar.gz
box64-a42322be998494490918884a9bf564a8cff6a5fc.zip
[RV64_DYNAREC] Fixed F7 /6 DIV opcode (#624)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_00.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_00.c b/src/dynarec/rv64/dynarec_rv64_00.c
index 88dd3df8..af559d3b 100644
--- a/src/dynarec/rv64/dynarec_rv64_00.c
+++ b/src/dynarec/rv64/dynarec_rv64_00.c
@@ -1383,7 +1383,7 @@ uintptr_t dynarec64_00(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
                         AND(x2, xRAX, xMASK);
                         OR(x3, x3, x2);
                         if(MODREG) {
-                            MV(x4, ed);
+                            AND(x4, ed, xMASK);
                             ed = x4;
                         }
                         DIVU(x2, x3, ed);