thread_context.hh (5712:199d31b47f7b) | thread_context.hh (5714:76abee886def) |
---|---|
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; --- 64 unchanged lines hidden (view full) --- 73 TheISA::DTB *getDTBPtr() { return cpu->dtb; } 74 75 /** Returns a pointer to this CPU. */ 76 virtual BaseCPU *getCpuPtr() { return cpu; } 77 78 /** Reads this CPU's ID. */ 79 virtual int cpuId() { return cpu->cpuId(); } 80 | 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; --- 64 unchanged lines hidden (view full) --- 73 TheISA::DTB *getDTBPtr() { return cpu->dtb; } 74 75 /** Returns a pointer to this CPU. */ 76 virtual BaseCPU *getCpuPtr() { return cpu; } 77 78 /** Reads this CPU's ID. */ 79 virtual int cpuId() { return cpu->cpuId(); } 80 |
81 virtual int contextId() { return thread->contextId(); } 82 83 virtual void setContextId(int id) { thread->setContextId(id); } 84 |
|
81#if FULL_SYSTEM 82 /** Returns a pointer to the system. */ 83 virtual System *getSystemPtr() { return cpu->system; } 84 85 /** Returns a pointer to physical memory. */ 86 virtual PhysicalMemory *getPhysMemPtr() { return cpu->physmem; } 87 88 /** Returns a pointer to this thread's kernel statistics. */ --- 210 unchanged lines hidden --- | 85#if FULL_SYSTEM 86 /** Returns a pointer to the system. */ 87 virtual System *getSystemPtr() { return cpu->system; } 88 89 /** Returns a pointer to physical memory. */ 90 virtual PhysicalMemory *getPhysMemPtr() { return cpu->physmem; } 91 92 /** Returns a pointer to this thread's kernel statistics. */ --- 210 unchanged lines hidden --- |