Commit bf91ada56ab8ef6c6d80f401c879cc53a39a390b

Authored by edgar_igl
1 parent 4c5e8c5c

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
target-cris/mmu.c
... ... @@ -285,7 +285,7 @@ static int cris_mmu_translate_page(struct cris_mmu_result_t *res,
285 285 env->sregs[SFR_RW_MM_TLB_SEL],
286 286 env->regs[R_SP], env->pregs[PR_USP], env->ksp));
287 287  
288   - res->pfn = tlb_pfn;
  288 + res->phy = tlb_pfn << TARGET_PAGE_BITS;
289 289 return !match;
290 290 }
291 291  
... ... @@ -360,11 +360,7 @@ int cris_mmu_translate(struct cris_mmu_result_t *res,
360 360 res->prot = PAGE_BITS;
361 361 }
362 362 else
363   - {
364 363 miss = cris_mmu_translate_page(res, env, vaddr, rw, is_user);
365   - phy = (res->pfn << 13);
366   - res->phy = phy;
367   - }
368 364 done:
369 365 env->pregs[PR_SRS] = old_srs;
370 366 return miss;
... ...
target-cris/mmu.h
... ... @@ -6,7 +6,6 @@
6 6 struct cris_mmu_result_t
7 7 {
8 8 uint32_t phy;
9   - uint32_t pfn;
10 9 int prot;
11 10 int bf_vec;
12 11 };
... ...