faults.hh (4695:a63378aed062) faults.hh (5004:7d94cedab264)
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;

--- 78 unchanged lines hidden (view full) ---

87 static FaultVect _vect;
88 static FaultStat _count;
89 public:
90 FaultName name() const {return _name;}
91 FaultVect vect() {return _vect;}
92 FaultStat & countStat() {return _count;}
93};
94
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;

--- 78 unchanged lines hidden (view full) ---

87 static FaultVect _vect;
88 static FaultStat _count;
89 public:
90 FaultName name() const {return _name;}
91 FaultVect vect() {return _vect;}
92 FaultStat & countStat() {return _count;}
93};
94
95#if !FULL_SYSTEM
96//class PageTableFault : public MipsFault
97//{
98//private:
99// Addr vaddr;
100// static FaultName _name;
101// static FaultVect _vect;
102// static FaultStat _count;
103//public:
104// PageTableFault(Addr va)
105// : vaddr(va) {}
106// FaultName name() {return _name;}
107// FaultVect vect() {return _vect;}
108// FaultStat & countStat() {return _count;}
109// void invoke(ThreadContext * tc);
110//};
111
112static inline Fault genPageTableFault(Addr va)
113{
114 return new PageTableFault(va);
115}
116#endif
117
118
119static inline Fault genMachineCheckFault()
120{
121 return new MachineCheckFault;
122}
123
95static inline Fault genMachineCheckFault()
96{
97 return new MachineCheckFault;
98}
99
124static inline Fault genAlignmentFault()
125{
126 return new AlignmentFault;
127}
128
129class ResetFault : public MipsFault
130{
131 private:
132 static FaultName _name;
133 static FaultVect _vect;
134 static FaultStat _count;
135 public:
136 FaultName name() const {return _name;}

--- 200 unchanged lines hidden ---
100class ResetFault : public MipsFault
101{
102 private:
103 static FaultName _name;
104 static FaultVect _vect;
105 static FaultStat _count;
106 public:
107 FaultName name() const {return _name;}

--- 200 unchanged lines hidden ---