Received: from eggs.gnu.org ([2001:4830:134:3::10]:53149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKfWV-0004PC-RV for qemu-devel@nongnu.org; Mon, 03 Mar 2014 21:56:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKfWR-0004ii-AM for qemu-devel@nongnu.org; Mon, 03 Mar 2014 21:56:03 -0500 Received: from cantor2.suse.de ([195.135.220.15]:49638 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKfWR-0004iO-3c for qemu-devel@nongnu.org; Mon, 03 Mar 2014 21:55:59 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 4 Mar 2014 03:55:43 +0100 Message-Id: <1393901749-5944-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 qom-cpu 0/6] cpu: Unifying features parsing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Eduardo Habkost , Alexey Kardashevskiy , Anthony Liguori , Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Hello, Prompted by Alexey's desire for tweakable PowerPCCPU properties but also = by Peter's wish for ARMCPU properties, this series sets out to align cpu_mod= el parsing across targets. QemuOpts would've been nice to use, but on the one hand x86 and sparc use QemuOpts-incompatible +foo and -foo syntax (which accumulate rather than = apply immediately) and on the other linux-user and bsd-user don't use QemuOpts = at all. The x86 implementation is closest to the proposed API, save for some lazi= ness. SPARC is brought in line. And as fallback for the remaining targets a new implementation, derived from x86 but supporting only key=3Dvalue format, = is added. To facilitate using this infrastructure, a generic CPU init function is c= reated. Only lightly tested. Available at: git://github.com/afaerber/qemu-cpu.git qom-cpu-features.v1 https://github.com/afaerber/qemu-cpu/commits/qom-cpu-features.v1 Regards, Andreas Cc: Alexey Kardashevskiy Cc: Peter Maydell Cc: Anthony Liguori Andreas F=C3=A4rber (6): cpu: Introduce CPUClass::parse_features() hook target-sparc: Use error_report() for CPU error reporting target-sparc: Implement CPUClass::parse_features() for SPARCCPU target-sparc: Defer SPARCCPU feature inference to QOM realize cpu: Implement CPUClass::parse_features() for the rest of CPUs cpu: Factor out cpu_generic_init() include/qom/cpu.h | 14 +++++++ qom/cpu.c | 72 +++++++++++++++++++++++++++++++++- target-arm/helper.c | 14 +------ target-cris/cpu.c | 13 +----- target-i386/cpu.c | 36 ++++++++++------- target-lm32/helper.c | 13 +----- target-moxie/cpu.c | 13 +----- target-openrisc/cpu.c | 13 +----- target-ppc/translate_init.c | 21 +--------- target-sh4/cpu.c | 13 +----- target-sparc/cpu.c | 96 +++++++++++++++++++++++++++------------= ------ target-unicore32/helper.c | 13 ++---- 12 files changed, 174 insertions(+), 157 deletions(-) --=20 1.8.4.5