thread_context.hh (8764:e4660687c49f) | thread_context.hh (8767:e575781f71b8) |
---|---|
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; --- 115 unchanged lines hidden (view full) --- 124 virtual Decoder *getDecoderPtr() = 0; 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; | 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; --- 115 unchanged lines hidden (view full) --- 124 virtual Decoder *getDecoderPtr() = 0; 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 Process *getProcessPtr() = 0; | |
134#endif | 132#endif |
133 virtual Process *getProcessPtr() = 0; |
|
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; --- 151 unchanged lines hidden (view full) --- 294 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); } | 134 135 virtual TranslatingPort *getMemPort() = 0; 136 137 virtual VirtualPort *getVirtPort() = 0; 138 139 virtual FunctionalPort *getPhysPort() = 0; 140 141 virtual Status status() const = 0; --- 151 unchanged lines hidden (view full) --- 293 294 System *getSystemPtr() { return actualTC->getSystemPtr(); } 295 296#if FULL_SYSTEM 297 TheISA::Kernel::Statistics *getKernelStats() 298 { return actualTC->getKernelStats(); } 299 300 void connectMemPorts(ThreadContext *tc) { actualTC->connectMemPorts(tc); } |
302#else 303 Process *getProcessPtr() { return actualTC->getProcessPtr(); } | |
304#endif | 301#endif |
302 Process *getProcessPtr() { return actualTC->getProcessPtr(); } |
|
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(); } --- 111 unchanged lines hidden --- | 303 304 TranslatingPort *getMemPort() { return actualTC->getMemPort(); } 305 306 VirtualPort *getVirtPort() { return actualTC->getVirtPort(); } 307 308 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); } 309 310 Status status() const { return actualTC->status(); } --- 111 unchanged lines hidden --- |