simple_thread.hh (5358:e9acb84bbafb) simple_thread.hh (5499:8bfc7650c344)
1/*
2 * Copyright (c) 2001-2006 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;

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

203
204 TheISA::DTB *getDTBPtr() { return dtb; }
205
206#if FULL_SYSTEM
207 System *getSystemPtr() { return system; }
208
209 FunctionalPort *getPhysPort() { return physPort; }
210
1/*
2 * Copyright (c) 2001-2006 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;

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

203
204 TheISA::DTB *getDTBPtr() { return dtb; }
205
206#if FULL_SYSTEM
207 System *getSystemPtr() { return system; }
208
209 FunctionalPort *getPhysPort() { return physPort; }
210
211 /** Return a virtual port. If no thread context is specified then a static
212 * port is returned. Otherwise a port is created and returned. It must be
213 * deleted by deleteVirtPort(). */
214 VirtualPort *getVirtPort(ThreadContext *tc);
215
216 void delVirtPort(VirtualPort *vp);
211 /** Return a virtual port. This port cannot be cached locally in an object.
212 * After a CPU switch it may point to the wrong memory object which could
213 * mean stale data.
214 */
215 VirtualPort *getVirtPort() { return virtPort; }
217#endif
218
219 Status status() const { return _status; }
220
221 void setStatus(Status newStatus) { _status = newStatus; }
222
223 /// Set the status to Active. Optional delay indicates number of
224 /// cycles to wait before beginning execution.

--- 205 unchanged lines hidden ---
216#endif
217
218 Status status() const { return _status; }
219
220 void setStatus(Status newStatus) { _status = newStatus; }
221
222 /// Set the status to Active. Optional delay indicates number of
223 /// cycles to wait before beginning execution.

--- 205 unchanged lines hidden ---