riscv / riscv-opcodes

RISC-V Opcodes
https://riscv.org/
BSD 3-Clause "New" or "Revised" License
671 stars 294 forks source link

README should explain usage #61

Open scottj97 opened 3 years ago

scottj97 commented 3 years ago

The current README.md does not explain how one would use this repo to add support for new instructions. I assume this repo can somehow be used to generate files useful to Spike and/or binutils?

There is some evidence for this in Spike's git repo:

riscv/encoding.h:/* Automatically generated by parse_opcodes.  */

Currently the README only refers to riscv-tools, which is (1) obsolete, and (2) doesn't seem to actually use this repo for anything. (At least, I couldn't find any script that refers to its riscv-opcodes submodule, or the parse_opcodes script.)

furuame commented 3 years ago

You could check out the Makefile.