From: Luke Kenneth Casson Leighton Date: Sun, 14 Oct 2018 05:21:42 +0000 (+0100) Subject: add rv_eq and rv_ne X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64b4b6ae8aa964d52c23bc03b19b85387ca3b634;p=riscv-isa-sim.git add rv_eq and rv_ne --- diff --git a/riscv/insns/beq.h b/riscv/insns/beq.h index fd7e061..1d57ca9 100644 --- a/riscv/insns/beq.h +++ b/riscv/insns/beq.h @@ -1,2 +1,2 @@ -if(RS1 == RS2) +if(rv_eq(RS1, RS2)) set_pc(BRANCH_TARGET); diff --git a/riscv/insns/bne.h b/riscv/insns/bne.h index 1e6cb7c..3f0921c 100644 --- a/riscv/insns/bne.h +++ b/riscv/insns/bne.h @@ -1,2 +1,2 @@ -if(RS1 != RS2) +if(rv_ne(RS1, RS2)) set_pc(BRANCH_TARGET);