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] [6160] CRIS: Remove unused pfn member from mmu translation results.
Date: Sun, 04 Jan 2009 15:42:05 +0000	[thread overview]
Message-ID: <E1LJV77-0007FS-Ev@cvs.savannah.gnu.org> (raw)

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

Log Message:
-----------
CRIS: Remove unused pfn member from mmu translation results.

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

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

Modified: trunk/target-cris/mmu.c
===================================================================
--- trunk/target-cris/mmu.c	2009-01-04 10:56:46 UTC (rev 6159)
+++ trunk/target-cris/mmu.c	2009-01-04 15:42:04 UTC (rev 6160)
@@ -285,7 +285,7 @@
 		  env->sregs[SFR_RW_MM_TLB_SEL],
 		  env->regs[R_SP], env->pregs[PR_USP], env->ksp));
 
-	res->pfn = tlb_pfn;
+	res->phy = tlb_pfn << TARGET_PAGE_BITS;
 	return !match;
 }
 
@@ -360,11 +360,7 @@
 		res->prot = PAGE_BITS;
 	}
 	else
-	{
 		miss = cris_mmu_translate_page(res, env, vaddr, rw, is_user);
-		phy = (res->pfn << 13);
-		res->phy = phy;
-	}
   done:
 	env->pregs[PR_SRS] = old_srs;
 	return miss;

Modified: trunk/target-cris/mmu.h
===================================================================
--- trunk/target-cris/mmu.h	2009-01-04 10:56:46 UTC (rev 6159)
+++ trunk/target-cris/mmu.h	2009-01-04 15:42:04 UTC (rev 6160)
@@ -6,7 +6,6 @@
 struct cris_mmu_result_t
 {
 	uint32_t phy;
-	uint32_t pfn;
 	int prot;
 	int bf_vec;
 };

                 reply	other threads:[~2009-01-04 15:42 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=E1LJV77-0007FS-Ev@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).