about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-03-25 20:44:40 +0000
committerptitSeb <sebastien.chev@gmail.com>2023-03-25 20:44:40 +0000
commitda7136ab7edc3ef2206b48a932352bb17c20cbc6 (patch)
tree4313c23e24dc72d5e6258c80ffecd3d15cd71dd7
parent73264b2e80c8aeeb32d5121b0dc11284b4560cae (diff)
downloadbox64-da7136ab7edc3ef2206b48a932352bb17c20cbc6.tar.gz
box64-da7136ab7edc3ef2206b48a932352bb17c20cbc6.zip
[RV64_DYNAREC] One fix for this bug is enough
-rw-r--r--src/dynarec/rv64/dynarec_rv64_helper.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/dynarec/rv64/dynarec_rv64_helper.h b/src/dynarec/rv64/dynarec_rv64_helper.h
index 4d6a1044..223fc5a3 100644
--- a/src/dynarec/rv64/dynarec_rv64_helper.h
+++ b/src/dynarec/rv64/dynarec_rv64_helper.h
@@ -451,11 +451,7 @@
             /* cf = bc & (1<<(width-1)) */                                \
             if ((width) == 8) {                                           \
                 ANDI(scratch1, scratch2, 0x80);                           \
-            } else if ((width) == 16) {                                   \
-                SLLI(scratch2, scratch2, 48);                             \
-                SRLI(scratch1, scratch2, 63);                             \
             } else {                                                      \
-                if ((width) == 32) { ZEROUP(scratch2); }                  \
                 SRLI(scratch1, scratch2, (width)-1);                      \
                 if(width!=64) ANDI(scratch1, scratch1, 1);                \
             }                                                             \