faults.hh (2665:a124942bacb8) faults.hh (2680:246e7104f744)
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;

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

42
43class MipsFault : public FaultBase
44{
45 protected:
46 virtual bool skipFaultingInstruction() {return false;}
47 virtual bool setRestartAddress() {return true;}
48 public:
49#if FULL_SYSTEM
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;

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

42
43class MipsFault : public FaultBase
44{
45 protected:
46 virtual bool skipFaultingInstruction() {return false;}
47 virtual bool setRestartAddress() {return true;}
48 public:
49#if FULL_SYSTEM
50 void invoke(ExecContext * xc);
50 void invoke(ThreadContext * tc);
51#endif
52 virtual FaultVect vect() = 0;
53 virtual FaultStat & countStat() = 0;
54};
55
56class MachineCheckFault : public MipsFault
57{
58 private:

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

109 static FaultName _name;
110 static FaultVect _vect;
111 static FaultStat _count;
112 public:
113 FaultName name() {return _name;}
114 FaultVect vect() {return _vect;}
115 FaultStat & countStat() {return _count;}
116#if FULL_SYSTEM
51#endif
52 virtual FaultVect vect() = 0;
53 virtual FaultStat & countStat() = 0;
54};
55
56class MachineCheckFault : public MipsFault
57{
58 private:

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

109 static FaultName _name;
110 static FaultVect _vect;
111 static FaultStat _count;
112 public:
113 FaultName name() {return _name;}
114 FaultVect vect() {return _vect;}
115 FaultStat & countStat() {return _count;}
116#if FULL_SYSTEM
117 void invoke(ExecContext * xc);
117 void invoke(ThreadContext * tc);
118#endif
119};
120
121class InterruptFault : public MipsFault
122{
123 protected:
124 bool setRestartAddress() {return false;}
125 private:

--- 146 unchanged lines hidden ---
118#endif
119};
120
121class InterruptFault : public MipsFault
122{
123 protected:
124 bool setRestartAddress() {return false;}
125 private:

--- 146 unchanged lines hidden ---