From: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] SH4: Fixed last UTLB unused
Date: Mon, 16 Feb 2009 23:41:03 +0100 [thread overview]
Message-ID: <1234824063.8648.6.camel@cocoduo.atr> (raw)
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 <lionel.landwerlin@openwide.fr>
---
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
next reply other threads:[~2009-02-16 22:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-16 22:41 Lionel Landwerlin [this message]
2009-02-21 15:21 ` [Qemu-devel] [PATCH] SH4: Fixed last UTLB unused Lionel Landwerlin
2009-02-22 0:05 ` Lionel Landwerlin
2009-03-03 6:15 ` Aurelien Jarno
2009-03-03 7:12 ` Lionel Landwerlin
2009-03-03 6:13 ` Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1234824063.8648.6.camel@cocoduo.atr \
--to=lionel.landwerlin@openwide.fr \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).