提交 7bd56bb6 编写于 作者: Z Zihao Yu

Merge branch 'rvc-bugfix' into 'rv64'

Rvc bugfix

See merge request projectn/nemu!16
......@@ -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.
先完成此消息的编辑!
想要评论请 注册