Skip to content

Commit

Permalink
add Zimop extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-rivos committed Sep 23, 2023
1 parent ccfb67c commit 1a674cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions riscv/insns/mop_r_N.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require_extension(EXT_ZIMOP);
WRITE_RD(0);
2 changes: 2 additions & 0 deletions riscv/insns/mop_rr_N.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require_extension(EXT_ZIMOP);
WRITE_RD(0);
1 change: 1 addition & 0 deletions riscv/isa_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ typedef enum {
EXT_SMCSRIND,
EXT_SSCSRIND,
EXT_SMCNTRPMF,
EXT_ZIMOP,
NUM_ISA_EXTENSIONS
} isa_extension_t;

Expand Down
5 changes: 5 additions & 0 deletions riscv/riscv.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,10 @@ riscv_insn_ext_zvksh = \
vsm3c_vi \
vsm3me_vv \

riscv_insn_ext_zimop = \
mop_r_N \
mop_rr_N \

riscv_insn_ext_zvk = \
$(riscv_insn_ext_zvbb) \
$(riscv_insn_ext_zvbc) \
Expand Down Expand Up @@ -1431,6 +1435,7 @@ riscv_insn_list = \
$(riscv_insn_priv) \
$(riscv_insn_smrnmi) \
$(riscv_insn_svinval) \
$(riscv_insn_ext_zimop) \

riscv_gen_srcs = $(addsuffix .cc,$(riscv_insn_list))

Expand Down

0 comments on commit 1a674cd

Please sign in to comment.