From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXsvI-0003NN-Cx for qemu-devel@nongnu.org; Fri, 25 May 2012 07:43:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXsvC-0003J0-5E for qemu-devel@nongnu.org; Fri, 25 May 2012 07:43:11 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42779 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXsvB-0003Im-VT for qemu-devel@nongnu.org; Fri, 25 May 2012 07:43:06 -0400 Message-ID: <4FBF7043.1030503@suse.de> Date: Fri, 25 May 2012 13:42:59 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 5/9] unicore32-softmmu: initialize ucv2 cpu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Guan Xuetao Cc: blauwirbel@gmail.com, qemu-devel@nongnu.org Am 25.05.2012 13:29, schrieb Guan Xuetao: > Signed-off-by: Guan Xuetao > --- > target-unicore32/cpu.c | 17 +++++++++++++---- > target-unicore32/cpu.h | 2 +- > 2 files changed, 14 insertions(+), 5 deletions(-) >=20 > diff --git a/target-unicore32/cpu.c b/target-unicore32/cpu.c > index de63f58..62c0a22 100644 > --- a/target-unicore32/cpu.c > +++ b/target-unicore32/cpu.c > @@ -32,13 +32,16 @@ static void unicore_ii_cpu_initfn(Object *obj) > UniCore32CPU *cpu =3D UNICORE32_CPU(obj); > CPUUniCore32State *env =3D &cpu->env; > =20 > - env->cp0.c0_cpuid =3D 0x40010863; > + env->cp0.c0_cpuid =3D UC32_CPUID_UCV2; Please don't revert this change. I'll send you the patch to drop the CPUID #defines instead. Andreas > diff --git a/target-unicore32/cpu.h b/target-unicore32/cpu.h > index 66c42f5..8af3649 100644 > --- a/target-unicore32/cpu.h > +++ b/target-unicore32/cpu.h > @@ -123,7 +123,7 @@ void cpu_asr_write(CPUUniCore32State *env1, target_= ulong val, target_ulong mask) > #define UC32_HWCAP_UCF64 8 /* 1 << 3 */ > =20 > #define UC32_CPUID(env) (env->cp0.c0_cpuid) > -#define UC32_CPUID_UCV2 0x40010863 > +#define UC32_CPUID_UCV2 0x4d000863 > #define UC32_CPUID_ANY 0xffffffff > =20 > #define cpu_init uc32_cpu_init --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg