On 29 August 2014 13:02, Edward Nevill <edward.nev...@linaro.org> wrote:
> We have a need on OpenJDK to flush the entire icache. Basically this
> need occurs when we do a garbage collection which may include garbage
> collection and patching of the dynamically generated code.
>

Surely, you could restrict the icache flush to the JIT heap, right?
There is a __builtin___clear_cache() function in GCC which maps onto
__clear_cache() in libgcc for AArch64, but it takes a begin and end
pointer.

-- 
Ard.


> Problem is, the IC IALLUIS instruction which we need is only executable
> from EL1 or greater.
>
> Is there any kernel hook to flush then entire icache.
>
> Thanks for your help,
> Ed.
>
>
>
> _______________________________________________
> linaro-dev mailing list
> linaro-dev@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-dev

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to