Skip to content

Commit 6bda68a

Browse files
authored
Merge pull request #4 from oakentling/master
Small fixes to config.mk
2 parents b4f65d3 + 09742a6 commit 6bda68a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ indent_size = unset
3535
indent_style = unset
3636
insert_final_newline = false
3737
max_line_length = 0
38-
trim_trailing_whitespace = false
38+
trim_trailing_whitespace = false

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ALL_REAL_OPCODES := $(ALL_REAL_ILEN32_OPCODES) opcodes-rvc opcodes-rv32c opcodes
55

66
# Add your opcodes here
77
include config.mk
8-
MY_OPCODES := $(MEMPOOL_ISA)
8+
MY_OPCODES ?= $(MEMPOOL_ISA)
99

1010
ALL_OPCODES := opcodes-pseudo $(ALL_REAL_OPCODES) $(MY_OPCODES) opcodes-rvv-pseudo
1111
# Opcodes to be discarded

config.mk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
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
77
RV32XPULPIMG += 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
1112
SNITCH_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
1516
SNITCH_ISA := $(RV32XPULPIMG) $(SNITCH_OPCODES) opcodes-sflt_CUSTOM

parse_opcodes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)