<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">Yep, I understood. But the intrinsic you suggest doesn't really solve</span><br>
</div>
the problem (I think). For example if you were compiling a kernel<br>
module your code would be running at a higher privilege level and the<br>
MRC would be actively misleading.<br>
<br>
Now, you could say that all kernel code must be compiled with an<br>
arm-none-eabi compiler, or with a special override which assumes<br>
higher privilege and always returns 1 for __has_cyclecounter (or<br>
whatever), but I think that's worse than the current situation of<br>
requiring a degree of competence of our users.<br>
<br>
I probably wouldn't oppose such a builtin, but I don't think<br>
implementing it is a good use of time.<br></blockquote><div><br></div><div style>Well reasoned, I agree with you :-)</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><span style="color:rgb(34,34,34)">Well, X86 Linux certainly (though I'm not sure the architecture gives</span><br></div>
it the option). My experience outside Linux (X86 & ARM) is rather<br>
limited at the moment.<br></blockquote><div><br></div><div style>Ah OK, I thought you had an ARM target that did, hence my initial curiosity.</div></div><br></div></div>