thread_context.hh (8777:dd43f1c9fa0a) | thread_context.hh (8799:dac1e33e07b0) |
---|---|
1/* 2 * Copyright (c) 2004-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; --- 82 unchanged lines hidden (view full) --- 91 92 /** Returns a pointer to the system. */ 93 virtual System *getSystemPtr() { return cpu->system; } 94 95 /** Returns a pointer to this thread's kernel statistics. */ 96 virtual TheISA::Kernel::Statistics *getKernelStats() 97 { return thread->kernelStats; } 98 | 1/* 2 * Copyright (c) 2004-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; --- 82 unchanged lines hidden (view full) --- 91 92 /** Returns a pointer to the system. */ 93 virtual System *getSystemPtr() { return cpu->system; } 94 95 /** Returns a pointer to this thread's kernel statistics. */ 96 virtual TheISA::Kernel::Statistics *getKernelStats() 97 { return thread->kernelStats; } 98 |
99 virtual void connectMemPorts(ThreadContext *tc) 100 { thread->connectMemPorts(tc); } 101 | |
102 /** Returns a pointer to this thread's process. */ 103 virtual Process *getProcessPtr() { return thread->getProcessPtr(); } 104 | 99 /** Returns a pointer to this thread's process. */ 100 virtual Process *getProcessPtr() { return thread->getProcessPtr(); } 101 |
105 virtual TranslatingPort *getMemPort() { return thread->getMemPort(); } | 102 virtual PortProxy* getPhysProxy() { return thread->getPhysProxy(); } |
106 | 103 |
107 virtual VirtualPort *getVirtPort(); | 104 virtual FSTranslatingPortProxy* getVirtProxy(); |
108 | 105 |
109 virtual FunctionalPort *getPhysPort() { return thread->getPhysPort(); } | 106 virtual void initMemProxies(ThreadContext *tc) 107 { thread->initMemProxies(tc); } |
110 | 108 |
109 virtual SETranslatingPortProxy* getMemProxy() 110 { return thread->getMemProxy(); } 111 |
|
111 /** Returns this thread's status. */ 112 virtual Status status() const { return thread->status(); } 113 114 /** Sets this thread's status. */ 115 virtual void setStatus(Status new_status) 116 { thread->setStatus(new_status); } 117 118 /** Set the status to Active. Optional delay indicates number of --- 126 unchanged lines hidden --- | 112 /** Returns this thread's status. */ 113 virtual Status status() const { return thread->status(); } 114 115 /** Sets this thread's status. */ 116 virtual void setStatus(Status new_status) 117 { thread->setStatus(new_status); } 118 119 /** Set the status to Active. Optional delay indicates number of --- 126 unchanged lines hidden --- |