faults.hh (6691:cd68b6ecd68d) | faults.hh (6972:b6482c4c89e3) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2009 The University of Edinburgh 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 62 unchanged lines hidden (view full) --- 71 public: 72 MachineCheckFault() 73 : PowerFault("Machine Check") 74 { 75 } 76}; 77 78 | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * Copyright (c) 2009 The University of Edinburgh 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 62 unchanged lines hidden (view full) --- 71 public: 72 MachineCheckFault() 73 : PowerFault("Machine Check") 74 { 75 } 76}; 77 78 |
79class AlignmentFault : public PowerFault 80{ 81 public: 82 AlignmentFault() 83 : PowerFault("Alignment") 84 { 85 } 86 87 bool 88 isAlignmentFault() const 89 { 90 return true; 91 } 92}; 93 94 |
|
79static inline Fault 80genMachineCheckFault() 81{ 82 return new MachineCheckFault(); 83} 84 85} // PowerISA namespace 86 87#endif // __ARCH_POWER_FAULTS_HH__ | 95static inline Fault 96genMachineCheckFault() 97{ 98 return new MachineCheckFault(); 99} 100 101} // PowerISA namespace 102 103#endif // __ARCH_POWER_FAULTS_HH__ |