From: blueswir1 Date: Tue, 25 Dec 2007 07:49:10 +0000 (+0000) Subject: Enforce context table alignment X-Git-Tag: release_0_9_1~39 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=72350cd795487d9499340ae1059814758df39559;p=xenclient%2Fioemu.git Enforce context table alignment --- diff --git a/target-sparc/helper.c b/target-sparc/helper.c index 894e3262..d657c312 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -129,7 +129,7 @@ int get_physical_address (CPUState *env, target_phys_addr_t *physical, int *prot /* SPARC reference MMU table walk: Context table->L1->L2->PTE */ /* Context base + context number */ - pde_ptr = (env->mmuregs[1] << 4) + (env->mmuregs[2] << 2); + pde_ptr = ((env->mmuregs[1] & ~63)<< 4) + (env->mmuregs[2] << 2); pde = ldl_phys(pde_ptr); /* Ctx pde */