Commit 3aa662faaebdebfe108e3d96398153530330ddf2
1 parent
306ab3e8
Enforce context table alignment
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3857 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-sparc/helper.c
| ... | ... | @@ -129,7 +129,7 @@ int get_physical_address (CPUState *env, target_phys_addr_t *physical, int *prot |
| 129 | 129 | |
| 130 | 130 | /* SPARC reference MMU table walk: Context table->L1->L2->PTE */ |
| 131 | 131 | /* Context base + context number */ |
| 132 | - pde_ptr = (env->mmuregs[1] << 4) + (env->mmuregs[2] << 2); | |
| 132 | + pde_ptr = ((env->mmuregs[1] & ~63)<< 4) + (env->mmuregs[2] << 2); | |
| 133 | 133 | pde = ldl_phys(pde_ptr); |
| 134 | 134 | |
| 135 | 135 | /* Ctx pde */ | ... | ... |