thread_context.hh (5497:89a6483d7047) thread_context.hh (5499:8bfc7650c344)
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;

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

89 virtual PhysicalMemory *getPhysMemPtr() { return cpu->physmem; }
90
91 /** Returns a pointer to this thread's kernel statistics. */
92 virtual TheISA::Kernel::Statistics *getKernelStats()
93 { return thread->kernelStats; }
94
95 virtual FunctionalPort *getPhysPort() { return thread->getPhysPort(); }
96
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;

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

89 virtual PhysicalMemory *getPhysMemPtr() { return cpu->physmem; }
90
91 /** Returns a pointer to this thread's kernel statistics. */
92 virtual TheISA::Kernel::Statistics *getKernelStats()
93 { return thread->kernelStats; }
94
95 virtual FunctionalPort *getPhysPort() { return thread->getPhysPort(); }
96
97 virtual VirtualPort *getVirtPort(ThreadContext *src_tc = NULL);
97 virtual VirtualPort *getVirtPort();
98
98
99 void delVirtPort(VirtualPort *vp);
100
101 virtual void connectMemPorts(ThreadContext *tc) { thread->connectMemPorts(tc); }
102#else
103 virtual TranslatingPort *getMemPort() { return thread->getMemPort(); }
104
105 /** Returns a pointer to this thread's process. */
106 virtual Process *getProcessPtr() { return thread->getProcessPtr(); }
107#endif
108 /** Returns this thread's status. */

--- 160 unchanged lines hidden ---
99 virtual void connectMemPorts(ThreadContext *tc) { thread->connectMemPorts(tc); }
100#else
101 virtual TranslatingPort *getMemPort() { return thread->getMemPort(); }
102
103 /** Returns a pointer to this thread's process. */
104 virtual Process *getProcessPtr() { return thread->getProcessPtr(); }
105#endif
106 /** Returns this thread's status. */

--- 160 unchanged lines hidden ---