[PATCH openEuler-22.03-LTS-SP1 2/5] x86/cpu/amd: Move the errata checking functionality up