From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5Izc-0007Rg-5B for qemu-devel@nongnu.org; Wed, 07 Mar 2012 10:41:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5IzQ-0000zB-Mf for qemu-devel@nongnu.org; Wed, 07 Mar 2012 10:41:31 -0500 Message-ID: <4F57819E.5030306@suse.de> Date: Wed, 07 Mar 2012 16:41:18 +0100 From: Alexander Graf MIME-Version: 1.0 References: <4F524894.7060208@freebsd.org> <4F525DA0.6060808@suse.de> In-Reply-To: <4F525DA0.6060808@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] PPC: Add PIR register to POWER7 CPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Andreas_F=E4rber?= Cc: qemu-ppc , Nathan Whitehorn , QEMU Developers On 03/03/2012 07:06 PM, Andreas F=E4rber wrote: > Am 03.03.2012 17:36, schrieb Nathan Whitehorn: >> The POWER7 emulation is missing the Processor Identification Register, >> mandatory in recent POWER CPUs, that is required for SMP on at least >> some operating systems (e.g. FreeBSD) to function properly. This patch >> copies the existing PIR code from the other CPUs that implement it. >> >> Signed-off-by: Nathan Whitehorn > Please always cc the respective maintainers (and lists) according to > MAINTAINERS. CC'ing Alex and qemu-ppc. > >> --- >> target-ppc/translate_init.c | 5 +++++ >> 1 files changed, 5 insertions(+), 0 deletions(-) >> >> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c >> index 8a7233f..01f4030 100644 >> --- a/target-ppc/translate_init.c >> +++ b/target-ppc/translate_init.c >> @@ -6537,6 +6537,11 @@ static void init_proc_POWER7 (CPUPPCState *env) >> /* Time base */ >> gen_tbl(env); >> #if !defined(CONFIG_USER_ONLY) >> + /* Processor identification */ >> + spr_register(env, SPR_PIR, "PIR", >> + SPR_NOACCESS, SPR_NOACCESS, >> +&spr_read_generic,&spr_write_pir, > Indentation looks weird here. Stray tab maybe? No tab, just a broken patch. I fixed the whitespace and applied it to=20 ppc-next. Alex