From: Alexandre Courbot <gnurou@gmail.com>
To: Aurelien Jarno <aurelien@aurel32.net>
Cc: Alexandre Courbot <gnurou@gmail.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] target-sh4: fix TLB invalidation code
Date: Tue, 25 Jan 2011 15:32:01 +0900 [thread overview]
Message-ID: <1295937121-30652-1-git-send-email-gnurou@gmail.com> (raw)
In cpu_sh4_invalidate_tlb, the UTLB was invalidated twice and the
ITLB left unchaged, probably because of some unfortunate copy/paste.
Signed-off-by: Alexandre Courbot <gnurou@gmail.com>
---
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 c34d2f5..aec4d75 100644
--- a/target-sh4/helper.c
+++ b/target-sh4/helper.c
@@ -562,8 +562,8 @@ void cpu_load_tlb(CPUSH4State * env)
entry->v = 0;
}
/* ITLB */
- for (i = 0; i < UTLB_SIZE; i++) {
- tlb_t * entry = &s->utlb[i];
+ for (i = 0; i < ITLB_SIZE; i++) {
+ tlb_t * entry = &s->itlb[i];
entry->v = 0;
}
--
1.7.3.5
next reply other threads:[~2011-01-25 6:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-25 6:32 Alexandre Courbot [this message]
2011-01-25 8:03 ` [Qemu-devel] [PATCH] target-sh4: fix TLB invalidation code 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=1295937121-30652-1-git-send-email-gnurou@gmail.com \
--to=gnurou@gmail.com \
--cc=aurelien@aurel32.net \
--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).