Hello Prerna and Alex, This series cleans up the fdt CPU nodes for -M pseries as attempted by Prerna.
v2 reuses DeviceClass::fw_name for name storage and cleans up sPAPR code to not rely on machine-global cpu_model or sPAPREnvironment::cpu_model. Underscores are avoided by using fw_name that doesn't have them for known CPUs or by stripping them explicitly. Regards, Andreas preview -> v2: * Set fw_name at family level rather than model level, saving macro extensions. * Appended patch stripping underscores (Prerna). v1 / Prerna's v3 -> preview: * Instead of overwriting cpu_model with parent's type name for -cpu host, set fw_name for some models and read type / parent's types otherwise. * Don't pass cpu_model to functions, determine name per CPU iterated. * Avoid walking alias list by taking fw_name or model part of type name. Cc: Prerna Saxena <[email protected]> Cc: Alexander Graf <[email protected]> Cc: Alexey Kardashevskiy <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Thomas Huth <[email protected]> Cc: Anthony Liguori <[email protected]> Cc: [email protected] Andreas Färber (4): target-ppc: Fill in OpenFirmware names for some PowerPCCPU families spapr: Use DeviceClass::fw_name for device tree CPU node spapr: Improve device tree CPU node for -cpu host with unknown OF name spapr: Suppress underscores in device tree CPU node hw/ppc/spapr.c | 53 +++++++++++++++++++++++++++------------------ include/hw/ppc/spapr.h | 1 - target-ppc/translate_init.c | 3 +++ 3 files changed, 35 insertions(+), 22 deletions(-) -- 1.8.1.4
