From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaC0r-0000WN-Kv for qemu-devel@nongnu.org; Wed, 27 Jan 2010 12:49:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaC0n-0000Ve-TX for qemu-devel@nongnu.org; Wed, 27 Jan 2010 12:49:09 -0500 Received: from [199.232.76.173] (port=41313 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaC0n-0000VZ-O3 for qemu-devel@nongnu.org; Wed, 27 Jan 2010 12:49:05 -0500 Received: from mail-pw0-f43.google.com ([209.85.160.43]:63345) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaC0n-0003N7-9l for qemu-devel@nongnu.org; Wed, 27 Jan 2010 12:49:05 -0500 Received: by pwj11 with SMTP id 11so4242104pwj.2 for ; Wed, 27 Jan 2010 09:49:04 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20100126231106.22550.1006.stgit@skyserv> References: <20100126231106.22550.1006.stgit@skyserv> From: Blue Swirl Date: Wed, 27 Jan 2010 17:48:44 +0000 Message-ID: Subject: Re: [Qemu-devel] [PATCH] sparc64: correct write extra bits to cwp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Igor V. Kovalenko" Cc: qemu-devel@nongnu.org Thanks, applied. On Tue, Jan 26, 2010 at 11:11 PM, Igor V. Kovalenko wrote: > From: Igor V. Kovalenko > > - correctly fit to cwp if provided window number is out of range > > Signed-off-by: Igor V. Kovalenko > --- > =C2=A0target-sparc/cpu.h | =C2=A0 =C2=A02 +- > =C2=A01 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h > index 50859c7..842a2f4 100644 > --- a/target-sparc/cpu.h > +++ b/target-sparc/cpu.h > @@ -519,7 +519,7 @@ static inline void PUT_PSR(CPUSPARCState *env1, targe= t_ulong val) > =C2=A0static inline void PUT_CWP64(CPUSPARCState *env1, int cwp) > =C2=A0{ > =C2=A0 =C2=A0 if (unlikely(cwp >=3D env1->nwindows || cwp < 0)) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0cwp =3D 0; > + =C2=A0 =C2=A0 =C2=A0 =C2=A0cwp %=3D env1->nwindows; > =C2=A0 =C2=A0 cpu_set_cwp(env1, env1->nwindows - 1 - cwp); > =C2=A0} > =C2=A0#endif > > > >