提交 a00bf16c 编写于 作者: Z Zihao Yu

riscv64,decode: fix signed-extend for B-type

上级 c646486b
......@@ -35,10 +35,10 @@ make_DHelper(R) {
}
make_DHelper(U) {
decode_op_i(id_src, decinfo.isa.instr.imm31_12 << 12, true);
decode_op_i(id_src, decinfo.isa.instr.simm31_12 << 12, true);
decode_op_r(id_dest, decinfo.isa.instr.rd, false);
print_Dop(id_src->str, OP_STR_SIZE, "0x%x", decinfo.isa.instr.imm31_12);
print_Dop(id_src->str, OP_STR_SIZE, "0x%x", decinfo.isa.instr.simm31_12);
}
make_DHelper(J) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册