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