[ARM/Linux] Is `ARM_HAZARD_AVOIDANCE` for Krait still effective?
While working on dotnet/runtime#6582, I found that an extra nop.w instructions is added sometimes for direct calls. According to the comment, it says it is a Krait processor bug. Actually I can't find more information about this on the web.
Is it still effective? If so, I was just thinking that we may not need to have this flag on by default.
/cc @dotnet/jit-contrib @hqueue
@wateret As you said, it is applied to avoid errata in Krait using #define ARM_HAZARD_AVOIDANCE at https://github.com/dotnet/coreclr/blob/master/src/jit/target.h#L1148. It may be necessary to make corecrl run correctly on all ARM SoC by default. I also think this feature can be disabled, if someone want to build coreclr for non Krait SoC.
You can probably change the define to remove the extra NOP's .
It think that it was a pretty rare issue, so its not very likely to cause failures even on hardware with the issue. If such hardware is still in use.