thread_context.hh (5715:e8c1d4e669a7) thread_context.hh (5803:aae3d7089925)
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;

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

81 virtual int contextId() { return thread->contextId(); }
82
83 virtual void setContextId(int id) { thread->setContextId(id); }
84
85 /** Returns this thread's ID number. */
86 virtual int threadId() { return thread->threadId(); }
87 virtual void setThreadId(int id) { return thread->setThreadId(id); }
88
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;

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

81 virtual int contextId() { return thread->contextId(); }
82
83 virtual void setContextId(int id) { thread->setContextId(id); }
84
85 /** Returns this thread's ID number. */
86 virtual int threadId() { return thread->threadId(); }
87 virtual void setThreadId(int id) { return thread->setThreadId(id); }
88
89#if FULL_SYSTEM
90 /** Returns a pointer to the system. */
91 virtual System *getSystemPtr() { return cpu->system; }
92
89 /** Returns a pointer to the system. */
90 virtual System *getSystemPtr() { return cpu->system; }
91
92#if FULL_SYSTEM
93 /** Returns a pointer to physical memory. */
94 virtual PhysicalMemory *getPhysMemPtr() { return cpu->physmem; }
95
96 /** Returns a pointer to this thread's kernel statistics. */
97 virtual TheISA::Kernel::Statistics *getKernelStats()
98 { return thread->kernelStats; }
99
100 virtual FunctionalPort *getPhysPort() { return thread->getPhysPort(); }

--- 203 unchanged lines hidden ---
93 /** Returns a pointer to physical memory. */
94 virtual PhysicalMemory *getPhysMemPtr() { return cpu->physmem; }
95
96 /** Returns a pointer to this thread's kernel statistics. */
97 virtual TheISA::Kernel::Statistics *getKernelStats()
98 { return thread->kernelStats; }
99
100 virtual FunctionalPort *getPhysPort() { return thread->getPhysPort(); }

--- 203 unchanged lines hidden ---