msrtool: Fix Intel CPUs detection

Added vendor check in sys.c file and fixed models checking
in intel targets files.

Change-Id: I1ce52bbce431dea79e903d6bc7a12e5b9ad061be
Signed-off-by: Anton Kochkov <anton.kochkov@gmail.com>
Reviewed-on: http://review.coreboot.org/1169
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Anton Kochkov
2012-07-04 07:31:37 +04:00
committed by Stefan Reinauer
parent e1e6a91ce0
commit ffbbecc9ee
8 changed files with 35 additions and 7 deletions

View File

@ -126,6 +126,7 @@ struct sysdef {
#define SYSTEM_EOT .name = NULL
#define SYSTEM_ISEOT(s) (NULL == (s).name)
typedef enum { VENDOR_INTEL = 1, VENDOR_AMD = 2 } vendor_t;
struct cpuid_t {
uint8_t family;
@ -133,6 +134,7 @@ struct cpuid_t {
uint8_t stepping;
uint8_t ext_family;
uint8_t ext_model;
vendor_t vendor;
};