[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] sh : performance problem
From: |
Lionel Landwerlin |
Subject: |
Re: [Qemu-devel] sh : performance problem |
Date: |
Tue, 03 Mar 2009 01:09:40 +0100 |
You might want this patch too
--
Lionel Landwerlin <address@hidden>
[PATCH] SH4: Fixed last UTLB unused and URB/URC management
Signed-off-by: Lionel Landwerlin <address@hidden>
---
target-sh4/helper.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target-sh4/helper.c b/target-sh4/helper.c
index cd0f392..54a3f1f 100644
--- a/target-sh4/helper.c
+++ b/target-sh4/helper.c
@@ -297,7 +297,7 @@ static int same_tlb_entry_exists(const tlb_t *
haystack, uint8_t nbtlb,
return 0;
}
-static void increment_urc(CPUState * env)
+static inline void increment_urc(CPUState * env)
{
uint8_t urb, urc;
@@ -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 ((urb > 0 && urc > urb) || urc > (UTLB_SIZE - 1))
urc = 0;
env->mmucr = (env->mmucr & 0xffff03ff) | (urc << 10);
}
--
1.5.6.5
- Re: [Qemu-devel] sh : performance problem, Lionel Landwerlin, 2009/03/02
- Re: [Qemu-devel] sh : performance problem,
Lionel Landwerlin <=
- Re: [Qemu-devel] sh : performance problem, Shin-ichiro KAWASAKI, 2009/03/03
- Re: [Qemu-devel] sh : performance problem, Lionel Landwerlin, 2009/03/03
- Re: [Qemu-devel] sh : performance problem, Laurent Desnogues, 2009/03/03
- Re: [Qemu-devel] sh : performance problem, Lionel Landwerlin, 2009/03/03
- Re: [Qemu-devel] sh : performance problem, Paul Brook, 2009/03/03
- Re: [Qemu-devel] sh : performance problem, Shin-ichiro KAWASAKI, 2009/03/04
- Re: [Qemu-devel] sh : performance problem, Shin-ichiro KAWASAKI, 2009/03/04
- Re: [Qemu-devel] sh : performance problem, Lionel Landwerlin, 2009/03/03
- Re: [Qemu-devel] sh : performance problem, Shin-ichiro KAWASAKI, 2009/03/04