]> Git Repo - qemu.git/commitdiff
SH4: Fixed last UTLB unused
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 3 Mar 2009 06:12:34 +0000 (06:12 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 3 Mar 2009 06:12:34 +0000 (06:12 +0000)
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 <[email protected]>
Signed-off-by: Aurelien Jarno <[email protected]>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6671 c046a42c-6fe2-441c-8c8c-71466251a162

target-sh4/helper.c

index f1c170e3b3f79211f89d7369250d69307b7c9426..f158b1f01d5f6ab35acd7dff352ae168c8258cf1 100644 (file)
@@ -304,7 +304,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)
        urc = 0;
     env->mmucr = (env->mmucr & 0xffff03ff) | (urc << 10);
 }
This page took 0.023174 seconds and 4 git commands to generate.