Skip to content

Commit

Permalink
Merge pull request #303 from 4a6f656c/riscv-opcodes-go-pseudo
Browse files Browse the repository at this point in the history
Stop including pseudo instructions in output for Go
  • Loading branch information
aswaterman authored Oct 25, 2024
2 parents 8ae1c19 + 90854e6 commit 0204706
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,13 +1199,23 @@ def signed(value, width):
print(f"Running with args : {sys.argv}")

extensions = sys.argv[1:]
for i in ["-c", "-latex", "-chisel", "-sverilog", "-rust", "-go", "-spinalhdl"]:
for i in [
"-c",
"-chisel",
"-go",
"-latex",
"-pseudo",
"-rust",
"-spinalhdl",
"-sverilog",
]:
if i in extensions:
extensions.remove(i)
print(f"Extensions selected : {extensions}")

include_pseudo = False
if "-go" in sys.argv[1:]:

if "-pseudo" in sys.argv[1:]:
include_pseudo = True

instr_dict = create_inst_dict(extensions, include_pseudo)
Expand Down

0 comments on commit 0204706

Please sign in to comment.