aboutsummaryrefslogtreecommitdiff
path: root/hw/smbios
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-01-23 19:42:27 +0100
committerAlistair Francis <alistair.francis@wdc.com>2024-02-09 20:43:14 +1000
commit6f3b727bcc867688034ef1489a58e958142973b1 (patch)
treeb3cd4c562d6b98a4a2802a1bce82c06cdae21f38 /hw/smbios
parentb5831d79671cea3f7bd42cffab93fe6eab8c3db0 (diff)
downloadqemu-6f3b727bcc867688034ef1489a58e958142973b1.zip
qemu-6f3b727bcc867688034ef1489a58e958142973b1.tar.gz
qemu-6f3b727bcc867688034ef1489a58e958142973b1.tar.bz2
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>
Diffstat (limited to 'hw/smbios')
-rw-r--r--hw/smbios/smbios.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/smbios/smbios.c b/hw/smbios/smbios.c
index 647bc6d..c0c5a81 100644
--- a/hw/smbios/smbios.c
+++ b/hw/smbios/smbios.c
@@ -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)