Received: from eggs.gnu.org ([208.118.235.92]:43226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDXAM-0005I5-IU for qemu-devel@nongnu.org; Fri, 30 Mar 2012 04:26:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDXAF-0006hL-UL for qemu-devel@nongnu.org; Fri, 30 Mar 2012 04:26:38 -0400 Received: from mprc.pku.edu.cn ([162.105.203.9]:37813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDXAF-0006gB-6C for qemu-devel@nongnu.org; Fri, 30 Mar 2012 04:26:31 -0400 Message-ID: <4F756E5C.8090509@mprc.pku.edu.cn> Date: Fri, 30 Mar 2012 16:27:08 +0800 From: Guan Xuetao MIME-Version: 1.0 References: <1333041282-3254-1-git-send-email-afaerber@suse.de> In-Reply-To: <1333041282-3254-1-git-send-email-afaerber@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 0/5] QOM'ify UniCore32 CPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: Peter Maydell , qemu-devel@nongnu.org, Anthony Liguori On 03/30/2012 01:14 AM, Andreas F=C3=A4rber wrote: > Hello Xuetao, > > This updated series converts the UniCore32 CPU to QOM. In addition to > addressing review comments from v1, a new approach for CPU-dependent > values has been adopted: We should keep setting of features imperative > and can avoid adding new class fields as storage for default values > by moving the existing imperative code into new initfn functions. > > Patch 1 adds a "UniCore32 CPU guest core (TCG)" section to MAINTAINERS, > so that the target-unicore32 author gets notified of patches against hi= s code. > > Patch 2, based on feedback from Guan Xuetao, changes the license of mos= t > target-unicore32 files from GPLv2 to GPLv2+. Anthony had contributed a > qemu_malloc() -> g_malloc() substitution that he can't relicense at th= is time, > so leave that as GPLv2 and declare my following patches explicitly as G= PLv2+. > Patch 3 adds a notice to license any following contributions under GPLv= 2+ already. > > Patch 4 embeds CPUUniCore32State into UniCore32CPU. My new cpu-qom.h he= ader > can be GPLv2+, but into cpu.c we're moving helper.c code so make it GPL= v2 for now. > > Patch 5 cleans up uc32_cpu_init() function by moving initializations in= to initfn. > > Could you test this please and, if happy, provide your Acked-by for pat= ches 1 and 3-5? I tested unicore32-linux-user mode, and it worked very well. BTW, patch 1 has my Acked-by already. Thanks & Regards, Guan Xuetao > > Available from: > git://github.com/afaerber/qemu-cpu.git qom-cpu-unicore32.v2 > https://github.com/afaerber/qemu-cpu/commits/qom-cpu-unicore32.v2 > > Regards, > Andreas > > Cc: Guan Xue-tao > Cc: Anthony Liguori > Cc: Peter Maydell > > v1 -> v2: > * Change license notice to match the previous one more closely. > * Adopt that license notice for new cpu-qom.h as well. > * Add notices to helper.c and cpu.c to license future contributions und= er GPLv2+. > * Adopt Peter's approach of using per-CPU initfn functions for default = values. > * Squash init code movement together (no new UniCore32CPUClass members = needed). > * Various naming updates (e.g., ..._type_info). > > Changes from former repo.or.cz qom-cpu[-wip] branch: > * Drop duplicate .instance_init. > > Andreas F=C3=A4rber (5): > MAINTAINERS: Add entry for UniCore32 > target-unicore32: Relicense to GPLv2+ > target-unicore32: License future contributions under GPLv2+ > target-unicore32: QOM'ify CPU > target-unicore32: Move CPU-dependent init into initfn > > MAINTAINERS | 5 ++ > Makefile.target | 1 + > target-unicore32/cpu-qom.h | 59 ++++++++++++++++++++++++ > target-unicore32/cpu.c | 104 +++++++++++++++++++++++++++++++++= +++++++++ > target-unicore32/cpu.h | 4 +- > target-unicore32/helper.c | 65 +++----------------------- > target-unicore32/helper.h | 3 +- > target-unicore32/op_helper.c | 3 +- > target-unicore32/translate.c | 3 +- > 9 files changed, 186 insertions(+), 61 deletions(-) > create mode 100644 target-unicore32/cpu-qom.h > create mode 100644 target-unicore32/cpu.c >