diff options
author | Mark Ryan <markdryan@rivosinc.com> | 2025-01-09 23:50:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-09 14:50:24 -0800 |
commit | 3c733921341af7f966e9af40570131f5fb4e5d87 (patch) | |
tree | d56a67bdb3c71dfcefaeaa760fbbe4e11fc49879 /chisel_utils.py | |
parent | 34e1d8194f11f234b073640e970e785e03b6ec04 (diff) | |
download | riscv-opcodes-3c733921341af7f966e9af40570131f5fb4e5d87.zip riscv-opcodes-3c733921341af7f966e9af40570131f5fb4e5d87.tar.gz riscv-opcodes-3c733921341af7f966e9af40570131f5fb4e5d87.tar.bz2 |
Add CSR encodings for Go and remove call to Go fmt (#329)
* Don't run go fmt error in go_utils.py
go_utils.py currently runs go fmt to pretty print the generated
inst.go file. Unfortunately, this call to go fmt always fails as
inst.go contains an internal import and go fmt is being run out of
tree. Here we remove the code that attempts to format inst.go
resulting in a clean run of go_utils.py without any errors. The
generated file, inst.go, can be formatted when it's copied into the
Go source tree, prior to its submission to the Golang project.
* Add CSR support to go_utils.py
go_utils.py now generates a Go map that maps CSR numbers to CSR
names. The resulting map is written into inst.go for use by the
Go assembler.
Diffstat (limited to 'chisel_utils.py')
0 files changed, 0 insertions, 0 deletions