File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ indent_size = unset
3535indent_style = unset
3636insert_final_newline = false
3737max_line_length = 0
38- trim_trailing_whitespace = false
38+ trim_trailing_whitespace = false
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ALL_REAL_OPCODES := $(ALL_REAL_ILEN32_OPCODES) opcodes-rvc opcodes-rv32c opcodes
55
66# Add your opcodes here
77include config.mk
8- MY_OPCODES : = $(MEMPOOL_ISA )
8+ MY_OPCODES ? = $(MEMPOOL_ISA )
99
1010ALL_OPCODES := opcodes-pseudo $(ALL_REAL_OPCODES ) $(MY_OPCODES ) opcodes-rvv-pseudo
1111# Opcodes to be discarded
Original file line number Diff line number Diff line change 33# RV32IMA := opcodes-rv32i opcodes-rv32m opcodes-rv32a opcodes-system
44
55# Xpulpimg
6- RV32XPULPIMG := opcodes-xpulpbr_CUSTOM opcodes-xpulpclip_CUSTOM opcodes-xpulpmacsi_CUSTOM opcodes-xpulpslet_CUSTOM opcodes-xpulpvect_CUSTOM opcodes-xpulpvectshufflepack_CUSTOM opcodes-xpulpminmax_CUSTOM opcodes-xpulphwloop_CUSTOM
6+ RV32XPULPIMG := opcodes-xpulpabs_CUSTOM opcodes- xpulpbr_CUSTOM opcodes-xpulpclip_CUSTOM opcodes-xpulpmacsi_CUSTOM opcodes-xpulpminmax_CUSTOM opcodes-xpulpslet_CUSTOM opcodes-xpulpvect_CUSTOM opcodes-xpulpvectshufflepack_CUSTOM
77RV32XPULPIMG += opcodes-xpulpbitop_CUSTOM
8- # XPULPIMG_OPCODES += opcodes-xpulpbitopsmall_CUSTOM #is a subset of opcodes-xpulpbitop_CUSTOM
8+ # RV32XPULPIMG += opcodes-xpulpbitopsmall_CUSTOM #is a subset of opcodes-xpulpbitop_CUSTOM
9+ # RV32XPULPIMG += opcodes-xpulppostmod_CUSTOM #conflict with opcodes-ssr_CUSTOM
910
1011# Snitch
1112SNITCH_OPCODES := opcodes-dma_CUSTOM opcodes-frep_CUSTOM opcodes-ssr_CUSTOM
1213
1314# default configurations
14- MEMPOOL_ISA := opcodes-frep_CUSTOM $(RV32XPULPIMG ) opcodes-rv32d-zfh_DRAFT opcodes-rv32q-zfh_DRAFT opcodes-rv32zfh_DRAFT opcodes-rv64zfh_DRAFT opcodes-sflt_CUSTOM
15+ MEMPOOL_ISA := opcodes-frep_CUSTOM $(RV32XPULPIMG ) opcodes-xpulppostmod_CUSTOM opcodes- rv32d-zfh_DRAFT opcodes-rv32q-zfh_DRAFT opcodes-rv32zfh_DRAFT opcodes-rv64zfh_DRAFT opcodes-sflt_CUSTOM
1516SNITCH_ISA := $(RV32XPULPIMG ) $(SNITCH_OPCODES ) opcodes-sflt_CUSTOM
Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ def make_rust():
685685 print ("#[repr(C)]" )
686686 print ("pub enum Csr {" )
687687 for csr in csrs + csrs32 :
688- print (f' { make_camel_case (csr [1 ])} = 0x { csr [0 ]:03x } ,' )
688+ print (" {} = 0x{:03x}," . format ( make_camel_case (csr [1 ]), csr [0 ]) )
689689 print ("}" )
690690
691691
You can’t perform that action at this time.
0 commit comments