I have been writing a program involving run-time code generation on an
R4000 Indigo. I use the cacheflush system call but my program dies and
leaves a core if I use cacheflush( address, length, ICACHE ) whereas it
runs fine if either DCACHE | BCACHE is specified. Am I supposed to flush the
Instruction cache and only the Instruction cache alone? My program sorta
works like this.
unsigned foo; /* aligned to VM page boundary */
gencode( foo ); /* generate codes and store them in foo */
cacheflush( foo, 4096, ICACHE );
Any info/answer/hint would be appreciated.