hw/smbios: fix field corruption in type 4 table
Merge Request Required Information
Summary of Changes
Since table type 4 of SMBIOS version 2.6 is shorter than 3.0, the strings which follow immediately after the struct fields have been overwritten by unconditional filling of later fields such as core_count2. Make these fields dependent on the SMBIOS version.
Approved Bugzilla Ticket
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2169904
Upstream status: in maintainer's PR (mst)