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