faults.hh (2680:246e7104f744) faults.hh (2800:18a615ca6e19)
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;

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

74 static FaultStat _count;
75 public:
76 FaultName name() {return _name;}
77 FaultVect vect() {return _vect;}
78 FaultStat & countStat() {return _count;}
79 bool isAlignmentFault() {return true;}
80};
81
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;

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

74 static FaultStat _count;
75 public:
76 FaultName name() {return _name;}
77 FaultVect vect() {return _vect;}
78 FaultStat & countStat() {return _count;}
79 bool isAlignmentFault() {return true;}
80};
81
82#if !FULL_SYSTEM
83class PageTableFault : public MipsFault
84{
85 private:
86 Addr vaddr;
87 static FaultName _name;
88 static FaultVect _vect;
89 static FaultStat _count;
90 public:
91 PageTableFault(Addr va)
92 : vaddr(va) {}
93 FaultName name() {return _name;}
94 FaultVect vect() {return _vect;}
95 FaultStat & countStat() {return _count;}
96 void invoke(ThreadContext * tc);
97};
98
99static inline Fault genPageTableFault(Addr va)
100{
101 return new PageTableFault(va);
102}
103#endif
104
105
82static inline Fault genMachineCheckFault()
83{
84 return new MachineCheckFault;
85}
86
87static inline Fault genAlignmentFault()
88{
89 return new AlignmentFault;

--- 182 unchanged lines hidden ---
106static inline Fault genMachineCheckFault()
107{
108 return new MachineCheckFault;
109}
110
111static inline Fault genAlignmentFault()
112{
113 return new AlignmentFault;

--- 182 unchanged lines hidden ---