From: Luke Kenneth Casson Leighton Date: Thu, 18 Oct 2018 22:16:24 +0000 (+0100) Subject: c_beqz X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f2d2faca14c553972d27fa39a71d4cbbe4b4e55;p=riscv-isa-sim.git c_beqz --- diff --git a/riscv/insns/c_beqz.h b/riscv/insns/c_beqz.h index 01bec6c..bcd6ab3 100644 --- a/riscv/insns/c_beqz.h +++ b/riscv/insns/c_beqz.h @@ -1,3 +1,3 @@ require_extension('C'); -if (rv_eq(RVC_RS1S, 0)) +if (rv_eq(RVC_RS1S, sv_reg_t(0U))) set_pc(rv_add(pc, insn.rvc_b_imm()));