From: Thiemo Seufer <ths@networkno.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Don't flush global TLB entries
Date: Tue, 21 Feb 2006 19:37:15 +0000 [thread overview]
Message-ID: <20060221193715.GF4110@networkno.de> (raw)
Hello All,
this avoids flushing of global TLB entries for differing ASIDs.
Thiemo
Index: qemu-work/target-mips/op_helper.c
===================================================================
--- qemu-work.orig/target-mips/op_helper.c 2006-02-19 01:30:55.000000000 +0000
+++ qemu-work/target-mips/op_helper.c 2006-02-19 16:18:43.000000000 +0000
@@ -622,13 +622,14 @@
void do_tlbr (void)
{
tlb_t *tlb;
+ uint8_t ASID;
int size;
+ ASID = env->CP0_EntryHi & 0xFF;
tlb = &env->tlb[env->CP0_index & (MIPS_TLB_NB - 1)];
/* If this will change the current ASID, flush qemu's TLB. */
- /* FIXME: Could avoid flushing things which match global entries... */
- if ((env->CP0_EntryHi & 0xFF) != tlb->ASID)
+ if (ASID != tlb->ASID && tlb->G != 1)
tlb_flush (env, 1);
env->CP0_EntryHi = tlb->VPN | tlb->ASID;
reply other threads:[~2006-02-21 19:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20060221193715.GF4110@networkno.de \
--to=ths@networkno.de \
--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).