faults.hh (2680:246e7104f744) | faults.hh (2800:18a615ca6e19) |
---|---|
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; --- 67 unchanged lines hidden (view full) --- 76 static FaultStat _count; 77 public: 78 FaultName name() {return _name;} 79 FaultVect vect() {return _vect;} 80 FaultStat & countStat() {return _count;} 81 bool isAlignmentFault() {return true;} 82}; 83 | 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; --- 67 unchanged lines hidden (view full) --- 76 static FaultStat _count; 77 public: 78 FaultName name() {return _name;} 79 FaultVect vect() {return _vect;} 80 FaultStat & countStat() {return _count;} 81 bool isAlignmentFault() {return true;} 82}; 83 |
84#if !FULL_SYSTEM 85class PageTableFault : public AlphaFault 86{ 87 private: 88 Addr vaddr; 89 static FaultName _name; 90 static FaultVect _vect; 91 static FaultStat _count; 92 public: 93 PageTableFault(Addr va) 94 : vaddr(va) {} 95 FaultName name() {return _name;} 96 FaultVect vect() {return _vect;} 97 FaultStat & countStat() {return _count;} 98 void invoke(ThreadContext * tc); 99}; 100 101static inline Fault genPageTableFault(Addr va) 102{ 103 return new PageTableFault(va); 104} 105#endif 106 |
|
84static inline Fault genMachineCheckFault() 85{ 86 return new MachineCheckFault; 87} 88 89static inline Fault genAlignmentFault() 90{ 91 return new AlignmentFault; --- 264 unchanged lines hidden --- | 107static inline Fault genMachineCheckFault() 108{ 109 return new MachineCheckFault; 110} 111 112static inline Fault genAlignmentFault() 113{ 114 return new AlignmentFault; --- 264 unchanged lines hidden --- |