about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2023-03-19 04:44:40 +0800
committerGitHub <noreply@github.com>2023-03-18 21:44:40 +0100
commit52715c92207da1e96e5eb973027e458479fd6968 (patch)
tree24ad5fc255f17f1a3e473680b25bc9fcd9ce6af4 /src
parent4409fb9b2112f3572187b7ba58192d7814118cb1 (diff)
downloadbox64-52715c92207da1e96e5eb973027e458479fd6968.tar.gz
box64-52715c92207da1e96e5eb973027e458479fd6968.zip
[RV64_DYNAREC] Fixed BF MOVSX opcode (#590)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/rv64/dynarec_rv64_0f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_0f.c b/src/dynarec/rv64/dynarec_rv64_0f.c
index f3ae7063..335c1a45 100644
--- a/src/dynarec/rv64/dynarec_rv64_0f.c
+++ b/src/dynarec/rv64/dynarec_rv64_0f.c
@@ -377,7 +377,7 @@ uintptr_t dynarec64_0F(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
             if(MODREG) {
                 ed = xRAX+(nextop&7)+(rex.b<<3);
                 SLLI(gd, ed, 48);
-                SRLI(gd, gd, 48);
+                SRAI(gd, gd, 48);
             } else {
                 SMREAD();
                 addr = geted(dyn, addr, ninst, nextop, &ed, x3, x1, &fixedaddress, rex, NULL, 1, 0);