Received: from eggs.gnu.org ([208.118.235.92]:35352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx83q-0005LG-7T for qemu-devel@nongnu.org; Sun, 20 Jan 2013 22:28:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tx83o-0001Fr-Kj for qemu-devel@nongnu.org; Sun, 20 Jan 2013 22:28:38 -0500 Received: from cantor2.suse.de ([195.135.220.15]:46156 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tx83o-0001F5-Af for qemu-devel@nongnu.org; Sun, 20 Jan 2013 22:28:36 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 21 Jan 2013 04:28:24 +0100 Message-Id: <1358738906-13224-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] [RFC qom-cpu v2 0/2] target-sh4: SuperHCPU subclasses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Aur=C3=A9lien=20Jarno?= , Eduardo Habkost Hello, This series introduces SuperH CPU subclasses. The first conversion to QOM patch had used a declarative approach reusing sh4_def_t as SuperHCPUInfo. This approach now uses imperative instance_in= it functions. To preserve -cpu ? output and case-insensitivity, distinct nam= e and type name are used, but allowing use of the type name as done for alp= ha. TODO: guard against abstract types (may apply to other targets as well) TODO: move class -> name lookup to cpu.c? This series in context: + qom-cpu cleanups and bugfixes being queued for 1.4 + CPUState QOM realizefn and initfn RFC for 1.5 / qom-cpu-next ~ SuperHCPU subclasses (this series) - SH7750 QOM'ification (to be rebased) - cross-target refactoring of cpu_init() and "realized" behavior (TBD) Available for testing at: git://github.com/afaerber/qemu-cpu.git qom-cpu-sh4-classes.v2 https://github.com/afaerber/qemu-cpu/commits/qom-cpu-sh4-classes.v2 Regards, Andreas v2: * Fixed bug in class name comparison, spotted by Igor. * Refactored name -> ObjectClass mapping into new function. * Moved realizefn patch into CPUState series, rebased. v1 -> preview on GitHub: * Redone, using combination of initfn and class_init instead of SuperHCPU= Info. * Adopted naming scheme suggested by Eduardo. * Split out SuperHCPUClass field movements into separate patch. Cc: Aur=C3=A9lien Jarno Cc: Igor Mammedov Cc: Eduardo Habkost Andreas F=C3=A4rber (2): target-sh4: Introduce SuperHCPU subclasses target-sh4: Move PVR/PRR/CVR into SuperHCPUClass hw/sh7750.c | 10 ++-- target-sh4/cpu-qom.h | 13 +++++ target-sh4/cpu.c | 124 ++++++++++++++++++++++++++++++++++++++++++= +++++- target-sh4/cpu.h | 3 -- target-sh4/translate.c | 94 +++++++++++++----------------------- 5 Dateien ge=C3=A4ndert, 175 Zeilen hinzugef=C3=BCgt(+), 69 Zeilen entfe= rnt(-) --=20 1.7.10.4