aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_bnez.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-03-30 20:28:55 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-03-30 20:29:07 -0700
commit7f3c072750a71f2800cfb03531ec16699c20bb34 (patch)
treef92a5276dfb52c35348dd88dc55e3c57d00c5fe1 /riscv/insns/c_bnez.h
parent180554d8f20e6ed5d90790579b85535c890ebc68 (diff)
downloadriscv-isa-sim-7f3c072750a71f2800cfb03531ec16699c20bb34.zip
riscv-isa-sim-7f3c072750a71f2800cfb03531ec16699c20bb34.tar.gz
riscv-isa-sim-7f3c072750a71f2800cfb03531ec16699c20bb34.tar.bz2
Implement RVC draft
Diffstat (limited to 'riscv/insns/c_bnez.h')
-rw-r--r--riscv/insns/c_bnez.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/insns/c_bnez.h b/riscv/insns/c_bnez.h
new file mode 100644
index 0000000..a1a5666
--- /dev/null
+++ b/riscv/insns/c_bnez.h
@@ -0,0 +1,3 @@
+require_rvc;
+if (RVC_RS1S != 0)
+ set_pc(pc + insn.rvc_b_imm());