Closed Houlx closed 3 years ago
Solved. After checking the Makefile, the two files riscv-opc.h and .c will be overwritten by the files in riscv_tools_delta.tar.gz when compiling the tool chain. Just modify the two files in this tar and repackage it.
I followed the steps in this article to add new instructions to the official toolchain, and it succeeded. But I added to this tool chain, after recompiling, the new instructions disappeared in riscv-opc.h and riscv-opc.c. It seems that during the recompilation process, the modified file was reset.