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 ITBWaitResponse, |
129 IcacheRetry, 130 IcacheWaitResponse, 131 IcacheWaitSwitch, |
132 DTBWaitResponse, |
133 DcacheRetry, 134 DcacheWaitResponse, 135 DcacheWaitSwitch, 136 SwitchedOut 137 }; 138 139 Status _status; 140 --- 16 unchanged lines hidden (view full) --- 157 158 //This is the offset from the current pc that fetch should be performed at 159 Addr fetchOffset; 160 //This flag says to stay at the current pc. This is useful for 161 //instructions which go beyond MachInst boundaries. 162 bool stayAtPC; 163 164 void checkForInterrupts(); |
165 void setupFetchRequest(Request *req); |
166 void preExecute(); 167 void postExecute(); 168 void advancePC(Fault fault); 169 170 virtual void deallocateContext(int thread_num); 171 virtual void haltContext(int thread_num); 172 173 // statistics --- 255 unchanged lines hidden --- |