thread_context.hh (3548:85e64c82c522) | thread_context.hh (3673:34386ba8cb41) |
---|---|
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; --- 119 unchanged lines hidden (view full) --- 128 129 virtual TheISA::Kernel::Statistics *getKernelStats() = 0; 130 131 virtual FunctionalPort *getPhysPort() = 0; 132 133 virtual VirtualPort *getVirtPort(ThreadContext *tc = NULL) = 0; 134 135 virtual void delVirtPort(VirtualPort *vp) = 0; | 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; --- 119 unchanged lines hidden (view full) --- 128 129 virtual TheISA::Kernel::Statistics *getKernelStats() = 0; 130 131 virtual FunctionalPort *getPhysPort() = 0; 132 133 virtual VirtualPort *getVirtPort(ThreadContext *tc = NULL) = 0; 134 135 virtual void delVirtPort(VirtualPort *vp) = 0; |
136 137 virtual void init() = 0; |
|
136#else 137 virtual TranslatingPort *getMemPort() = 0; 138 139 virtual Process *getProcessPtr() = 0; 140#endif 141 142 virtual Status status() const = 0; 143 --- 156 unchanged lines hidden (view full) --- 300 TheISA::Kernel::Statistics *getKernelStats() 301 { return actualTC->getKernelStats(); } 302 303 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); } 304 305 VirtualPort *getVirtPort(ThreadContext *tc = NULL) { return actualTC->getVirtPort(tc); } 306 307 void delVirtPort(VirtualPort *vp) { return actualTC->delVirtPort(vp); } | 138#else 139 virtual TranslatingPort *getMemPort() = 0; 140 141 virtual Process *getProcessPtr() = 0; 142#endif 143 144 virtual Status status() const = 0; 145 --- 156 unchanged lines hidden (view full) --- 302 TheISA::Kernel::Statistics *getKernelStats() 303 { return actualTC->getKernelStats(); } 304 305 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); } 306 307 VirtualPort *getVirtPort(ThreadContext *tc = NULL) { return actualTC->getVirtPort(tc); } 308 309 void delVirtPort(VirtualPort *vp) { return actualTC->delVirtPort(vp); } |
310 311 void init() {actualTC->init(); } |
|
308#else 309 TranslatingPort *getMemPort() { return actualTC->getMemPort(); } 310 311 Process *getProcessPtr() { return actualTC->getProcessPtr(); } 312#endif 313 314 Status status() const { return actualTC->status(); } 315 --- 135 unchanged lines hidden --- | 312#else 313 TranslatingPort *getMemPort() { return actualTC->getMemPort(); } 314 315 Process *getProcessPtr() { return actualTC->getProcessPtr(); } 316#endif 317 318 Status status() const { return actualTC->status(); } 319 --- 135 unchanged lines hidden --- |