[PATCH AUTOSEL 5.8 62/63] arm64: Move handling of erratum 1418040 into C code