~vcs-imports/qemu/git

« back to all changes in this revision

Viewing changes to target-microblaze/translate.c

  • Committer: Edgar E. Iglesias
  • Date: 2009-09-03 11:04:02 UTC
  • Revision ID: git-v1:3c50a71fc933c0ffba82c95111fa780e6110d79f
microblaze: MMU shows more respect to synthesis config.

The microblaze MMU can be synthesized in different configurations.
Have the MMU model show more respect to the chosen configuration.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
1442
1442
                       | PVR0_USE_DCACHE_MASK \
1443
1443
                       | PVR0_USE_MMU \
1444
1444
                       | (0xb << 8);
1445
 
     env->pvr.regs[2] = PVR2_D_OPB_MASK \
 
1445
    env->pvr.regs[2] = PVR2_D_OPB_MASK \
1446
1446
                        | PVR2_D_LMB_MASK \
1447
1447
                        | PVR2_I_OPB_MASK \
1448
1448
                        | PVR2_I_LMB_MASK \
1453
1453
                        | PVR2_USE_HW_MUL_MASK \
1454
1454
                        | PVR2_USE_MUL64_MASK \
1455
1455
                        | 0;
1456
 
     env->pvr.regs[10] = 0x0c000000; /* Default to spartan 3a dsp family.  */
1457
 
     env->pvr.regs[11] = PVR11_USE_MMU;
 
1456
    env->pvr.regs[10] = 0x0c000000; /* Default to spartan 3a dsp family.  */
 
1457
    env->pvr.regs[11] = PVR11_USE_MMU | (16 << 17);
 
1458
#if !defined(CONFIG_USER_ONLY)
 
1459
    env->mmu.c_mmu = 3;
 
1460
    env->mmu.c_mmu_tlb_access = 3;
 
1461
    env->mmu.c_mmu_zones = 16;
 
1462
#endif
1458
1463
 
1459
1464
    if (tcg_initialized)
1460
1465
        return env;