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