thread_context.hh (8761:20322354b80b) | thread_context.hh (8764:e4660687c49f) |
---|---|
1/* 2 * Copyright (c) 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; --- 116 unchanged lines hidden (view full) --- 125 126 virtual System *getSystemPtr() = 0; 127 128#if FULL_SYSTEM 129 virtual TheISA::Kernel::Statistics *getKernelStats() = 0; 130 131 virtual void connectMemPorts(ThreadContext *tc) = 0; 132#else | 1/* 2 * Copyright (c) 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; --- 116 unchanged lines hidden (view full) --- 125 126 virtual System *getSystemPtr() = 0; 127 128#if FULL_SYSTEM 129 virtual TheISA::Kernel::Statistics *getKernelStats() = 0; 130 131 virtual void connectMemPorts(ThreadContext *tc) = 0; 132#else |
133 virtual TranslatingPort *getMemPort() = 0; 134 | |
135 virtual Process *getProcessPtr() = 0; 136#endif 137 | 133 virtual Process *getProcessPtr() = 0; 134#endif 135 |
136 virtual TranslatingPort *getMemPort() = 0; 137 |
|
138 virtual VirtualPort *getVirtPort() = 0; 139 140 virtual FunctionalPort *getPhysPort() = 0; 141 142 virtual Status status() const = 0; 143 144 virtual void setStatus(Status new_status) = 0; 145 --- 149 unchanged lines hidden (view full) --- 295 System *getSystemPtr() { return actualTC->getSystemPtr(); } 296 297#if FULL_SYSTEM 298 TheISA::Kernel::Statistics *getKernelStats() 299 { return actualTC->getKernelStats(); } 300 301 void connectMemPorts(ThreadContext *tc) { actualTC->connectMemPorts(tc); } 302#else | 138 virtual VirtualPort *getVirtPort() = 0; 139 140 virtual FunctionalPort *getPhysPort() = 0; 141 142 virtual Status status() const = 0; 143 144 virtual void setStatus(Status new_status) = 0; 145 --- 149 unchanged lines hidden (view full) --- 295 System *getSystemPtr() { return actualTC->getSystemPtr(); } 296 297#if FULL_SYSTEM 298 TheISA::Kernel::Statistics *getKernelStats() 299 { return actualTC->getKernelStats(); } 300 301 void connectMemPorts(ThreadContext *tc) { actualTC->connectMemPorts(tc); } 302#else |
303 TranslatingPort *getMemPort() { return actualTC->getMemPort(); } 304 | |
305 Process *getProcessPtr() { return actualTC->getProcessPtr(); } 306#endif 307 | 303 Process *getProcessPtr() { return actualTC->getProcessPtr(); } 304#endif 305 |
306 TranslatingPort *getMemPort() { return actualTC->getMemPort(); } 307 |
|
308 VirtualPort *getVirtPort() { return actualTC->getVirtPort(); } 309 310 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); } 311 312 Status status() const { return actualTC->status(); } 313 314 void setStatus(Status new_status) { actualTC->setStatus(new_status); } 315 --- 108 unchanged lines hidden --- | 308 VirtualPort *getVirtPort() { return actualTC->getVirtPort(); } 309 310 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); } 311 312 Status status() const { return actualTC->status(); } 313 314 void setStatus(Status new_status) { actualTC->setStatus(new_status); } 315 --- 108 unchanged lines hidden --- |