pulp-platform / ri5cy_gnu_toolchain

22 stars 23 forks source link

Is there any way to add a new instruction? #36

Closed Houlx closed 3 years ago

Houlx commented 3 years ago

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.

Houlx commented 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.