[PATCH AUTOSEL 5.4 37/38] arm64: Move handling of erratum 1418040 into C code