* [Qemu-devel] [PATCH] Don't flush global TLB entries
@ 2006-02-21 19:37 Thiemo Seufer
0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2006-02-21 19:37 UTC (permalink / raw)
To: qemu-devel
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-21 19:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21 19:37 [Qemu-devel] [PATCH] Don't flush global TLB entries Thiemo Seufer
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).