aboutsummaryrefslogtreecommitdiff
path: root/target-cris
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-04 15:42:04 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-04 15:42:04 +0000
commitbf91ada56ab8ef6c6d80f401c879cc53a39a390b (patch)
tree69335056e0e729344e8ef8ab1148f88c67a1a493 /target-cris
parent4c5e8c5ce8a874880bc403ef153285f54dbbd960 (diff)
downloadqemu-bf91ada56ab8ef6c6d80f401c879cc53a39a390b.zip
qemu-bf91ada56ab8ef6c6d80f401c879cc53a39a390b.tar.gz
qemu-bf91ada56ab8ef6c6d80f401c879cc53a39a390b.tar.bz2
CRIS: Remove unused pfn member from mmu translation results.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6160 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris')
-rw-r--r--target-cris/mmu.c6
-rw-r--r--target-cris/mmu.h1
2 files changed, 1 insertions, 6 deletions
diff --git a/target-cris/mmu.c b/target-cris/mmu.c
index f270d5b..408a99c 100644
--- a/target-cris/mmu.c
+++ b/target-cris/mmu.c
@@ -285,7 +285,7 @@ static int cris_mmu_translate_page(struct cris_mmu_result_t *res,
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 @@ int cris_mmu_translate(struct cris_mmu_result_t *res,
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;
diff --git a/target-cris/mmu.h b/target-cris/mmu.h
index 5a1f92d..1b9aff1 100644
--- a/target-cris/mmu.h
+++ b/target-cris/mmu.h
@@ -6,7 +6,6 @@
struct cris_mmu_result_t
{
uint32_t phy;
- uint32_t pfn;
int prot;
int bf_vec;
};