提交 64d5193a 编写于 作者: W William Wang 提交者: Zihao Yu

fix(rv64): fix a rv64c decode conflict

上级 942c8b18
......@@ -31,7 +31,8 @@ make_EHelper(sra) {
make_EHelper(srl) {
// the LSB of funct7 may be "1" due to the shift amount can be >= 32
if ((decinfo.isa.instr.funct7 & ~0x1) == 32) {
// this rule is disabled when a compressed inst comes in
if ((decinfo.isa.instr.funct7 & ~0x1) == 32 && decinfo.isa.instr.opcode1_0 == 0x3) {
exec_sra(pc);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册