We are looking for help on how to flush/sync the Instruction/Data caches on the Power CPU programmatically under Linux.
We have several ways in which our application generates code in the data space and jumps to execute it (similar to a JIT compiler). Before jumping to execute the code in the data space we need to be able to flush or sync the I and D caches.
On AIX we use the following library routine: _sync_cache_range()
Is there a routine like this that we can call on Power Linux? If not, what would be the best way to accomplish this.