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: Aurelien Jarno
Subject: Re: [Qemu-devel] [PATCH] SH4: Fixed last UTLB unused
Date: Tue, 3 Mar 2009 07:13:07 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Feb 16, 2009 at 11:41:03PM +0100, Lionel Landwerlin wrote:
> 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 <address@hidden>

Thanks, applied.

> ---
>  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)
>       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
> 
> 
> 
> 

-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
address@hidden                 http://www.aurel32.net




reply via email to

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