Alpha: Initialize the data TLB mode IPR.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 11 Oct 2010 03:37:39 +0000 (20:37 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 11 Oct 2010 03:37:39 +0000 (20:37 -0700)
src/arch/alpha/process.cc

index c65cf2d3771c198428701ca174f325090b2c9fab..f68a53a6f1f43a6687de305c915b5bcae431097c 100644 (file)
@@ -205,7 +205,8 @@ AlphaLiveProcess::initState()
     ThreadContext *tc = system->getThreadContext(contextIds[0]);
     tc->setIntReg(GlobalPointerReg, objFile->globalPointer());
     //Operate in user mode
-    tc->setMiscRegNoEffect(IPR_ICM, 0x18);
+    tc->setMiscRegNoEffect(IPR_ICM, mode_user << 3);
+    tc->setMiscRegNoEffect(IPR_DTB_CM, mode_user << 3);
     //No super page mapping
     tc->setMiscRegNoEffect(IPR_MCSR, 0);
 }