mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
2 changed files with 8 additions and 0 deletions
|
@ -989,6 +989,13 @@ void smbios_set_cpuid(uint32_t version, uint32_t features)
|
||||||
field = value; \
|
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,
|
void smbios_set_defaults(const char *manufacturer, const char *product,
|
||||||
const char *version, bool legacy_mode,
|
const char *version, bool legacy_mode,
|
||||||
bool uuid_encoded, SmbiosEntryPointType ep_type)
|
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,
|
void smbios_set_defaults(const char *manufacturer, const char *product,
|
||||||
const char *version, bool legacy_mode,
|
const char *version, bool legacy_mode,
|
||||||
bool uuid_encoded, SmbiosEntryPointType ep_type);
|
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);
|
uint8_t *smbios_get_table_legacy(MachineState *ms, size_t *length);
|
||||||
void smbios_get_tables(MachineState *ms,
|
void smbios_get_tables(MachineState *ms,
|
||||||
const struct smbios_phys_mem_area *mem_array,
|
const struct smbios_phys_mem_area *mem_array,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue