faults.cc (3531:51eb743f38f5) | faults.cc (3572:aa8751395277) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 277 unchanged lines hidden (view full) --- 286 //set HTSTATE.hpstate to hpstate 287 tc->setMiscReg(MISCREG_HTSTATE, HPSTATE); 288 289 //TT = trap type; 290 tc->setMiscReg(MISCREG_TT, tt); 291 292 //Update the global register level 293 if(1/*We're delivering the trap in priveleged mode*/) | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 277 unchanged lines hidden (view full) --- 286 //set HTSTATE.hpstate to hpstate 287 tc->setMiscReg(MISCREG_HTSTATE, HPSTATE); 288 289 //TT = trap type; 290 tc->setMiscReg(MISCREG_TT, tt); 291 292 //Update the global register level 293 if(1/*We're delivering the trap in priveleged mode*/) |
294 tc->setMiscReg(MISCREG_GL, max<int>(GL+1, MaxGL)); | 294 tc->setMiscReg(MISCREG_GL, min<int>(GL+1, MaxGL)); |
295 else | 295 else |
296 tc->setMiscReg(MISCREG_GL, max<int>(GL+1, MaxPGL)); | 296 tc->setMiscReg(MISCREG_GL, min<int>(GL+1, MaxPGL)); |
297 298 //PSTATE.mm is unchanged 299 //PSTATE.pef = whether or not an fpu is present 300 //XXX We'll say there's one present, even though there aren't 301 //implementations for a decent number of the instructions 302 PSTATE |= (1 << 4); 303 //PSTATE.am = 0 304 PSTATE &= ~(1 << 3); --- 155 unchanged lines hidden --- | 297 298 //PSTATE.mm is unchanged 299 //PSTATE.pef = whether or not an fpu is present 300 //XXX We'll say there's one present, even though there aren't 301 //implementations for a decent number of the instructions 302 PSTATE |= (1 << 4); 303 //PSTATE.am = 0 304 PSTATE &= ~(1 << 3); --- 155 unchanged lines hidden --- |