Lines Matching full:pstate
290 // PSTATE.priv is set to 1 here. The manual says it should be 0, but
292 PSTATE pstate = tc->readMiscRegNoEffect(MISCREG_PSTATE);
293 pstate.priv = 1;
294 tc->setMiscReg(MISCREG_PSTATE, pstate);
307 PSTATE pstate = tc->readMiscRegNoEffect(MISCREG_PSTATE);
318 Addr pcMask = pstate.am ? mask(32) : mask(64);
326 // set TSTATE.pstate to pstate
327 replaceBits(TSTATE, 20, 8, pstate);
348 bool priv = pstate.priv; // just save the priv bit
349 pstate = 0;
350 pstate.priv = priv;
351 pstate.pef = 1;
352 tc->setMiscRegNoEffect(MISCREG_PSTATE, pstate);
386 PSTATE pstate = tc->readMiscRegNoEffect(MISCREG_PSTATE);
399 Addr pcMask = pstate.am ? mask(32) : mask(64);
409 // set TSTATE.pstate to pstate
410 replaceBits(TSTATE, 20, 8, pstate);
434 // pstate.mm is unchanged
435 pstate.pef = 1; // PSTATE.pef = whether or not an fpu is present
436 pstate.am = 0;
437 pstate.ie = 0;
438 // pstate.tle is unchanged
439 // pstate.tct = 0
442 pstate.cle = 0;
443 // The manual says PSTATE.priv should be 0, but Legion leaves it alone
450 pstate.priv = 1;
451 pstate.cle = pstate.tle;
453 tc->setMiscRegNoEffect(MISCREG_PSTATE, pstate);
512 PSTATE pstate = tc->readMiscRegNoEffect(MISCREG_PSTATE);
520 else if (pstate.priv)
530 // This changes the hpstate and pstate, so we need to make sure we
571 PSTATE pstate = 0;
572 pstate.pef = 1;
573 pstate.priv = 1;
574 tc->setMiscRegNoEffect(MISCREG_PSTATE, pstate);