smbios: function to set default processor family
Provide a function to set the default processor family. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Message-ID: <20240123184229.10415-3-heinrich.schuchardt@canonical.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
b5831d7967
commit
6f3b727bcc
@ -989,6 +989,13 @@ void smbios_set_cpuid(uint32_t version, uint32_t features)
|
||||
field = value; \
|
||||
}
|
||||
|
||||
void smbios_set_default_processor_family(uint16_t processor_family)
|
||||
{
|
||||
if (type4.processor_family <= 0x01) {
|
||||
type4.processor_family = processor_family;
|
||||
}
|
||||
}
|
||||
|
||||
void smbios_set_defaults(const char *manufacturer, const char *product,
|
||||
const char *version, bool legacy_mode,
|
||||
bool uuid_encoded, SmbiosEntryPointType ep_type)
|
||||
|
@ -295,6 +295,7 @@ void smbios_set_cpuid(uint32_t version, uint32_t features);
|
||||
void smbios_set_defaults(const char *manufacturer, const char *product,
|
||||
const char *version, bool legacy_mode,
|
||||
bool uuid_encoded, SmbiosEntryPointType ep_type);
|
||||
void smbios_set_default_processor_family(uint16_t processor_family);
|
||||
uint8_t *smbios_get_table_legacy(MachineState *ms, size_t *length);
|
||||
void smbios_get_tables(MachineState *ms,
|
||||
const struct smbios_phys_mem_area *mem_array,
|
||||
|
Loading…
Reference in New Issue
Block a user