qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] SH4: Fixed last UTLB unused


From: Lionel Landwerlin
Subject: Re: [Qemu-devel] [PATCH] SH4: Fixed last UTLB unused
Date: Sat, 21 Feb 2009 16:21:35 +0100

A more exact patch (according to datasheet) would be :


Signed-off-by: Lionel Landwerlin <address@hidden>
---
 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 = ((env->mmucr) >> 18) & 0x3f;
     urc = ((env->mmucr) >> 10) & 0x3f;
     urc++;
-    if (urc == urb || urc == UTLB_SIZE - 1)
+    if (urc == urb || urc > (UTLB_SIZE - 1))
        urc = 0;
     env->mmucr = (env->mmucr & 0xffff03ff) | (urc << 10);
 }
-- 
1.5.6.5


-- 
Lione Landwerlin                                         

O p e n W i d e                    14, rue Gaillon 75002 Paris









reply via email to

[Prev in Thread] Current Thread [Next in Thread]