interrupts.hh (11168:f98eb2da15a4) interrupts.hh (11566:b11410957c9e)
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
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;

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

102
103 // updateIntrInfo(ThreadContext *tc) const syncs the
104 // MIPS cause register with the instatus variable. instatus
105 // is essentially a copy of the MIPS cause[IP7:IP0]
106 //
107 void updateIntrInfo(ThreadContext *tc) const;
108 bool interruptsPending(ThreadContext *tc) const;
109 bool onCpuTimerInterrupt(ThreadContext *tc) const;
1/*
2 * Copyright (c) 2007 MIPS Technologies, Inc.
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;

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

102
103 // updateIntrInfo(ThreadContext *tc) const syncs the
104 // MIPS cause register with the instatus variable. instatus
105 // is essentially a copy of the MIPS cause[IP7:IP0]
106 //
107 void updateIntrInfo(ThreadContext *tc) const;
108 bool interruptsPending(ThreadContext *tc) const;
109 bool onCpuTimerInterrupt(ThreadContext *tc) const;
110 bool checkInterrupts(ThreadContext *tc) const;
110
111
111 bool
112 checkInterrupts(ThreadContext *tc) const
113 {
114 return interruptsPending(tc);
115 }
116
117
118 void
119 serialize(CheckpointOut &cp) const override
120 {
121 fatal("Serialization of Interrupts Unimplemented for MIPS");
122 }
123
124 void
125 unserialize(CheckpointIn &cp) override
126 {
127 fatal("Unserialization of Interrupts Unimplemented for MIPS");
128 }
129};
130
131}
132
133#endif
134
112 void
113 serialize(CheckpointOut &cp) const override
114 {
115 fatal("Serialization of Interrupts Unimplemented for MIPS");
116 }
117
118 void
119 unserialize(CheckpointIn &cp) override
120 {
121 fatal("Unserialization of Interrupts Unimplemented for MIPS");
122 }
123};
124
125}
126
127#endif
128