Nios V/g program doesn't start
Hi, we made a design with Nios V/g Processor using Intel Quartus Prime and trying to run a simple elf on it using RiscFree IDE. The program doesn't start since it falls into a trap because of an illegal instruction exception. These are the compile options we got from bsp generated:
-march=rv32ima_zicbom -mabi=ilp32
and this is where exception is thrown in file crt0.S:
/*
* Initialize the data cache if present (i.e. size > 0).
* Skip initialization if optimizing for RTL simulation.
* RTL simulations can ensure the data cache tag RAM is already
* initialized so skipping this speeds up RTL simulation.
*/
#ifndef ALT_SIM_OPTIMIZE
#if ALT_CPU_DCACHE_SIZE > 0
li t0, ALT_CPU_DCACHE_SIZE
0:
/* cbo.inval.ix */
/*!!!NIOSV_ILLEGAL_INSTRUCTION!!!*/
.insn i 0x0F, 0x2, zero, t0, 0x080
addi t0, t0, -ALT_CPU_DCACHE_LINE_SIZE
bnez t0, 0b
#endif /* Initialize Data Cache */
#endif /* ALT_SIM_OPTIMIZE */
Could you please help us figure out this situation?
Thank you in advance!