runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[ARM/Linux] Is `ARM_HAZARD_AVOIDANCE` for Krait still effective?

Open wateret opened this issue 10 years ago • 2 comments

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 avatar Aug 31 '16 06:08 wateret

@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.

hqueue avatar Aug 31 '16 08:08 hqueue

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.

briansull avatar Aug 31 '16 20:08 briansull