<div dir="ltr">Isn't that a separate discussion ? I.e, I think we need both<div>__clear_cache and the corresponding builtin.<br><div><br></div><div>gcc has a __clear_cache in libgcc as well, though it isn't clear</div>
<div>to me if it ever emits calls to that methods or whether the builtin</div>

<div>can handle all architectures that it supports.<br><div><br></div></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 7, 2014 at 8:52 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 6 March 2014 02:37, JF Bastien <<a href="mailto:jfb@google.com">jfb@google.com</a>> wrote:<br>
> I don't think copy/paste is the right thing, but calling svc is simple<br>
> enough that a different implementation (one for ARM and one for Thumb)<br>
> should work, in the same style as other inline asm in this file.<br>
<br>
</div>Would it be a good idea to implement __builtin___clear_cache like in<br>
GCC 4.3, so that we can emit instructions based on the backend, and<br>
call __clear_cache as a fall back?<br>
<span class="HOEnZb"><font color="#888888"><br>
--renato<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>_________________<br>Save Rainforests
</div>