1/*
2 * Copyright (c) 2002-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;
--- 111 unchanged lines hidden (view full) ---
120 * objects to modify this thread's state.
121 */
122 ThreadContext *tc;
123 protected:
124
125 enum Status {
126 Idle,
127 Running,
128 IcacheRetry,
129 IcacheWaitResponse,
130 IcacheWaitSwitch,
131 DcacheRetry,
132 DcacheWaitResponse,
133 DcacheWaitSwitch,
134 SwitchedOut
135 };
136
137 Status _status;
138
--- 16 unchanged lines hidden (view full) ---
155
156 //This is the offset from the current pc that fetch should be performed at
157 Addr fetchOffset;
158 //This flag says to stay at the current pc. This is useful for
159 //instructions which go beyond MachInst boundaries.
160 bool stayAtPC;
161
162 void checkForInterrupts();
163 Fault setupFetchRequest(Request *req);
164 void preExecute();
165 void postExecute();
166 void advancePC(Fault fault);
167
168 virtual void deallocateContext(int thread_num);
169 virtual void haltContext(int thread_num);
170
171 // statistics
--- 255 unchanged lines hidden ---
2 * Copyright (c) 2002-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;
--- 111 unchanged lines hidden (view full) ---
120 * objects to modify this thread's state.
121 */
122 ThreadContext *tc;
123 protected:
124
125 enum Status {
126 Idle,
127 Running,
128 IcacheRetry,
129 IcacheWaitResponse,
130 IcacheWaitSwitch,
131 DcacheRetry,
132 DcacheWaitResponse,
133 DcacheWaitSwitch,
134 SwitchedOut
135 };
136
137 Status _status;
138
--- 16 unchanged lines hidden (view full) ---
155
156 //This is the offset from the current pc that fetch should be performed at
157 Addr fetchOffset;
158 //This flag says to stay at the current pc. This is useful for
159 //instructions which go beyond MachInst boundaries.
160 bool stayAtPC;
161
162 void checkForInterrupts();
163 Fault setupFetchRequest(Request *req);
164 void preExecute();
165 void postExecute();
166 void advancePC(Fault fault);
167
168 virtual void deallocateContext(int thread_num);
169 virtual void haltContext(int thread_num);
170
171 // statistics
--- 255 unchanged lines hidden ---