From: aurel32 Date: Tue, 3 Mar 2009 06:12:34 +0000 (+0000) Subject: SH4: Fixed last UTLB unused X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fb1045824924e7b906b432acdb6e358cfbbebeef;p=xenclient%2Fioemu.git SH4: Fixed last UTLB unused 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 Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6671 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/target-sh4/helper.c b/target-sh4/helper.c index f1c170e3..f158b1f0 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -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); }