Flushing the icache

Jeff Doughty jeffd at norge.sgi.com
Sat Mar 17 01:45:33 AEST 1990


> Thanx to all those who responded to my previous MIPS question (about
> lw). It turns out that the bug I'm battling is caused by an
> icache/dcache consistency problem. So now I ask, is there any way to
> flush the icache on sgi 4d machines? If the answer is no, is there a
> way to find out the size of the icache at runtime?

The following code will do the job:

#include <sys/sysmips.h>

...

	sysmips(FLUSH_CACHE);
...

				Jeff Doughty
				IRIX group



More information about the Comp.sys.sgi mailing list