Received: from eggs.gnu.org ([2001:4830:134:3::10]:45252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VA68c-0001uI-LZ for qemu-devel@nongnu.org; Thu, 15 Aug 2013 18:35:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VA68Y-0001Bc-98 for qemu-devel@nongnu.org; Thu, 15 Aug 2013 18:35:26 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 16 Aug 2013 00:35:07 +0200 Message-Id: <1376606111-3518-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 0/4] target-ppc: Tidy sPAPR device tree CPU nodes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Thomas Huth , Alexey Kardashevskiy , Alexander Graf , qemu-ppc@nongnu.org, Anthony Liguori , Prerna Saxena , =?UTF-8?q?Andreas=20F=C3=A4rber?= Hello Prerna and Alex, This series cleans up the fdt CPU nodes for -M pseries as attempted by Pr= erna. 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 exten= sions. * 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 Cc: Alexander Graf Cc: Alexey Kardashevskiy Cc: Benjamin Herrenschmidt Cc: Thomas Huth Cc: Anthony Liguori Cc: qemu-ppc@nongnu.org Andreas F=C3=A4rber (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(-) --=20 1.8.1.4