qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6161] CRIS: Dont flush kernel protected pages when modifying $pid.
Date: Sun, 04 Jan 2009 15:45:18 +0000	[thread overview]
Message-ID: <E1LJVAE-0007L0-ST@cvs.savannah.gnu.org> (raw)

Revision: 6161
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6161
Author:   edgar_igl
Date:     2009-01-04 15:45:17 +0000 (Sun, 04 Jan 2009)

Log Message:
-----------
CRIS: Dont flush kernel protected pages when modifying $pid.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>

Modified Paths:
--------------
    trunk/target-cris/mmu.c

Modified: trunk/target-cris/mmu.c
===================================================================
--- trunk/target-cris/mmu.c	2009-01-04 15:42:04 UTC (rev 6160)
+++ trunk/target-cris/mmu.c	2009-01-04 15:45:17 UTC (rev 6161)
@@ -295,7 +295,7 @@
 	unsigned int idx;
 	uint32_t lo, hi;
 	uint32_t tlb_vpn;
-	int tlb_pid, tlb_g, tlb_v, tlb_k;
+	int tlb_pid, tlb_g, tlb_v;
 	unsigned int set;
 	unsigned int mmu;
 
@@ -311,11 +311,8 @@
 				tlb_pid = EXTRACT_FIELD(hi, 0, 7);
 				tlb_g  = EXTRACT_FIELD(lo, 4, 4);
 				tlb_v = EXTRACT_FIELD(lo, 3, 3);
-				tlb_k = EXTRACT_FIELD(lo, 2, 2);
 
-				/* Kernel protected areas need to be flushed
-				   as well.  */
-				if (tlb_v && !tlb_g && (tlb_pid == pid || tlb_k)) {
+				if (tlb_v && !tlb_g && (tlb_pid == pid)) {
 					vaddr = tlb_vpn << TARGET_PAGE_BITS;
 					D(fprintf(logfile,
 						  "flush pid=%x vaddr=%x\n", 

                 reply	other threads:[~2009-01-04 15:45 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=E1LJVAE-0007L0-ST@cvs.savannah.gnu.org \
    --to=edgar.iglesias@gmail.com \
    --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).