aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2013-11-21 14:42:50 -0800
committerYunsup Lee <yunsup@cs.berkeley.edu>2013-11-21 14:42:50 -0800
commita8889d65d249a71f009433766a1e9b1405945708 (patch)
tree405a0ef1979e679af253c14732f2305e6e0b9484 /pk
parent6c0a4423c5b05221fc1c23b838316ffa88c0858d (diff)
downloadpk-a8889d65d249a71f009433766a1e9b1405945708.zip
pk-a8889d65d249a71f009433766a1e9b1405945708.tar.gz
pk-a8889d65d249a71f009433766a1e9b1405945708.tar.bz2
fix slli/slliw encoding bug
Diffstat (limited to 'pk')
-rw-r--r--pk/riscv-opc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pk/riscv-opc.h b/pk/riscv-opc.h
index 197f1b3..70b3cda 100644
--- a/pk/riscv-opc.h
+++ b/pk/riscv-opc.h
@@ -13,7 +13,7 @@
#define MASK_BLTU 0x707f
#define MATCH_FMIN_S 0xc0000053
#define MASK_FMIN_S 0xfe00707f
-#define MATCH_SLLIW 0x4000101b
+#define MATCH_SLLIW 0x101b
#define MASK_SLLIW 0xfe00707f
#define MATCH_LB 0x3
#define MASK_LB 0x707f
@@ -229,7 +229,7 @@
#define MASK_REMW 0xfe00707f
#define MATCH_SLTU 0x3033
#define MASK_SLTU 0xfe00707f
-#define MATCH_SLLI 0x40001013
+#define MATCH_SLLI 0x1013
#define MASK_SLLI 0xfc00707f
#define MATCH_AMOOR_W 0x4000202f
#define MASK_AMOOR_W 0xf800707f