arch/x86/include/cpu: introduce CPU_TABLE_END CPU table terminator
commit1e78165cdcccd95306604928a145a515498e794a
authorFelix Held <felix-coreboot@felixheld.de>
Wed, 8 Feb 2023 10:39:16 +0000 (8 11:39 +0100)
committerFelix Held <felix-coreboot@felixheld.de>
Thu, 9 Feb 2023 16:54:11 +0000 (9 16:54 +0000)
tree60cf3e2f6c4a444017af9d47563b7e36b6826180
parent24f3dc8a17240c6869e247c99c94a96af94be0ef
arch/x86/include/cpu: introduce CPU_TABLE_END CPU table terminator

Instead of having a magic entry in the CPU device ID table list to tell
find_cpu_driver that it has reached the end of the list, introduce and
use CPU_TABLE_END. Since the vendor entry in the CPU device ID struct is
compared against X86_VENDOR_INVALID which is 0, use X86_VENDOR_INVALID
instead of the 0 in the CPU_TABLE_END definition.

TEST=Timeless build for Mandolin results in identical image.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Suggested-by: Angel Pons <th3fanbus@gmail.com>
Change-Id: I0cae6d65b2265cf5ebf90fe1a9d885d0c489eb92
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72888
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
31 files changed:
src/arch/x86/include/arch/cpu.h
src/cpu/amd/pi/00730F01/model_16_init.c
src/cpu/intel/haswell/haswell_init.c
src/cpu/intel/model_1067x/model_1067x_init.c
src/cpu/intel/model_106cx/model_106cx_init.c
src/cpu/intel/model_2065x/model_2065x_init.c
src/cpu/intel/model_206ax/model_206ax_init.c
src/cpu/intel/model_65x/model_65x_init.c
src/cpu/intel/model_67x/model_67x_init.c
src/cpu/intel/model_68x/model_68x_init.c
src/cpu/intel/model_6bx/model_6bx_init.c
src/cpu/intel/model_6ex/model_6ex_init.c
src/cpu/intel/model_6fx/model_6fx_init.c
src/cpu/intel/model_6xx/model_6xx_init.c
src/cpu/intel/model_f2x/model_f2x_init.c
src/cpu/intel/model_f3x/model_f3x_init.c
src/cpu/intel/model_f4x/model_f4x_init.c
src/cpu/qemu-x86/qemu.c
src/soc/amd/cezanne/cpu.c
src/soc/amd/glinda/cpu.c
src/soc/amd/mendocino/cpu.c
src/soc/amd/phoenix/cpu.c
src/soc/amd/picasso/cpu.c
src/soc/amd/stoneyridge/cpu.c
src/soc/intel/apollolake/cpu.c
src/soc/intel/baytrail/cpu.c
src/soc/intel/braswell/cpu.c
src/soc/intel/common/block/cpu/mp_init.c
src/soc/intel/denverton_ns/cpu.c
src/soc/intel/xeon_sp/cpx/cpu.c
src/soc/intel/xeon_sp/skx/cpu.c