faults.hh (13475:5189e2334f1a) | faults.hh (14090:a2fea3b370b5) |
---|---|
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; --- 85 unchanged lines hidden (view full) --- 94{ 95 private: 96 Addr vaddr; 97 public: 98 FaultName name() const { return "Generic page table fault"; } 99 GenericPageTableFault(Addr va) : vaddr(va) {} 100 void invoke(ThreadContext * tc, const StaticInstPtr &inst = 101 StaticInst::nullStaticInstPtr); | 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; --- 85 unchanged lines hidden (view full) --- 94{ 95 private: 96 Addr vaddr; 97 public: 98 FaultName name() const { return "Generic page table fault"; } 99 GenericPageTableFault(Addr va) : vaddr(va) {} 100 void invoke(ThreadContext * tc, const StaticInstPtr &inst = 101 StaticInst::nullStaticInstPtr); |
102 Addr getFaultVAddr() const { return vaddr; } |
|
102}; 103 104class GenericAlignmentFault : public FaultBase 105{ 106 private: 107 Addr vaddr; 108 public: 109 FaultName name() const { return "Generic alignment fault"; } 110 GenericAlignmentFault(Addr va) : vaddr(va) {} 111 void invoke(ThreadContext * tc, const StaticInstPtr &inst = 112 StaticInst::nullStaticInstPtr); | 103}; 104 105class GenericAlignmentFault : public FaultBase 106{ 107 private: 108 Addr vaddr; 109 public: 110 FaultName name() const { return "Generic alignment fault"; } 111 GenericAlignmentFault(Addr va) : vaddr(va) {} 112 void invoke(ThreadContext * tc, const StaticInstPtr &inst = 113 StaticInst::nullStaticInstPtr); |
114 Addr getFaultVAddr() const { return vaddr; } |
|
113}; 114 115#endif // __FAULTS_HH__ | 115}; 116 117#endif // __FAULTS_HH__ |