[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] SH4: Fixed last UTLB unused
From: |
Lionel Landwerlin |
Subject: |
[Qemu-devel] [PATCH] SH4: Fixed last UTLB unused |
Date: |
Mon, 16 Feb 2009 23:41:03 +0100 |
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>
---
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
- [Qemu-devel] [PATCH] SH4: Fixed last UTLB unused,
Lionel Landwerlin <=