Adding Custom Instructions to RISC-V GCC Toolchain
git clone git@github.com:riscv-collab/riscv-gnu-toolchain.git
cd ./riscv-gnu-toolchain/
git submodule update --init --recursivegit clone git@github.com:riscv/riscv-opcodes.gittestinst rd rs1 rs2 31..25=1 14..12=0 6..2=0x1A 1..0=3uv run riscv_opcodes -c "unratified/rv_testinst"/* Automatically generated by parse_opcodes. */
#ifndef RISCV_ENCODING_H
#define RISCV_ENCODING_H
#define MATCH_TESTINST 0x200006b
#define MASK_TESTINST 0xfe00707f
Last updated
