help, trying to invalidate entire icache on 970

Chris Friesen cfriesen at
Wed Apr 6 06:07:23 EST 2005

Jake Moilanen wrote:

> IIRC to modify an instruction you need the following sequence to do
> flush the icache correctly:
> 	dcbst  
> 	sync
> 	icbi 
> 	isync

This works if you know the address that was modified.

My problem is that I have an application (emulator) that modifies its 
own instructions but doesn't track the addresses.  Thus I need to flush 
the entire dcache (on the 970 this is just a "sync"), and invalidate the 
entire icache.


More information about the Linuxppc64-dev mailing list