From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZC9D-0006Xf-Rm for qemu-devel@nongnu.org; Mon, 16 Feb 2009 17:41:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZC9C-0006X1-Ke for qemu-devel@nongnu.org; Mon, 16 Feb 2009 17:41:07 -0500 Received: from [199.232.76.173] (port=39588 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZC9C-0006Wy-Bz for qemu-devel@nongnu.org; Mon, 16 Feb 2009 17:41:06 -0500 Received: from soufre.accelance.net ([213.162.48.15]:51112) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LZC9B-0004wd-RZ for qemu-devel@nongnu.org; Mon, 16 Feb 2009 17:41:06 -0500 Received: from [192.168.0.3] (potipota.net [88.168.176.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by soufre.accelance.net (Postfix) with ESMTP id 729D245040 for ; Mon, 16 Feb 2009 23:41:04 +0100 (CET) From: Lionel Landwerlin Content-Type: text/plain; charset=UTF-8 Date: Mon, 16 Feb 2009 23:41:03 +0100 Message-Id: <1234824063.8648.6.camel@cocoduo.atr> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] SH4: Fixed last UTLB unused Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org With my previous patch (the one monitoring tlb), I found that the last TLB entry was never use. Here a little fix. Signed-off-by: Lionel Landwerlin --- target-sh4/helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index cd0f392..918a946 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -305,7 +305,7 @@ static void increment_urc(CPUState * env) urb =3D ((env->mmucr) >> 18) & 0x3f; urc =3D ((env->mmucr) >> 10) & 0x3f; urc++; - if (urc =3D=3D urb || urc =3D=3D UTLB_SIZE - 1) + if (urc =3D=3D urb || urc =3D=3D UTLB_SIZE) urc =3D 0; env->mmucr =3D (env->mmucr & 0xffff03ff) | (urc << 10); } --=20 1.5.6.5 --=20 =EF=BB=BFLione Landwerlin =20 =EF=BB=BF O p e n W i d e 14, rue Gaillon 75002 Paris