[fpc-pascal] Is RV32I instruction set for RISC-V (embedded) supported?

Bernd Mueller mueller.b at gmx.net
Fri Mar 5 10:41:45 CET 2021


I would like to use fpc to program a FPGA softcore RISC-V cpu. The
softcore has the RV32I instruction set implemented.

I modified the Makefile in rtl/embedded, so that the known SUBARCH
rv32imac replaces the option -Cprv32imac with now -Cprv32i.  But this
leads to the following error message, when I try to compile the

/home/bernd/fpc/fpc331/48875/src/compiler/ppcrossrv32 -Ur -Cprv32i
-Tembedded -Priscv32 -XPriscv32-embedded- -Ur -Xs -O2 -n -Fi../inc
-Fi../riscv32 -FE.
-driscv32 -dRELEASE -al  -Us -Sg system.pp @system.cfg
Assembler messages:
Error: unrecognized opcode `mul x11,x11,x10'

Is this expected, since RV32I is not supported, or should this work?

Regards, Bernd.

More information about the fpc-pascal mailing list