[Top][All Lists]
[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:15:25 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Sun, Feb 22, 2009 at 01:05:37AM +0100, Lionel Landwerlin wrote:
> Still not happy with the fix ...
>
> Signed-off-by: Lionel Landwerlin <address@hidden>
> ---
> target-sh4/helper.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Sorry I missed this one when committing the first patch. I have applied
it on top of it.
> diff --git a/target-sh4/helper.c b/target-sh4/helper.c
> index cd0f392..8498d3f 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
>
>
>
>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net