thread_context.hh (5497:89a6483d7047) thread_context.hh (5499:8bfc7650c344)
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#if FULL_SYSTEM
127 virtual System *getSystemPtr() = 0;
128
129 virtual TheISA::Kernel::Statistics *getKernelStats() = 0;
130
131 virtual FunctionalPort *getPhysPort() = 0;
132
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#if FULL_SYSTEM
127 virtual System *getSystemPtr() = 0;
128
129 virtual TheISA::Kernel::Statistics *getKernelStats() = 0;
130
131 virtual FunctionalPort *getPhysPort() = 0;
132
133 virtual VirtualPort *getVirtPort(ThreadContext *tc = NULL) = 0;
133 virtual VirtualPort *getVirtPort() = 0;
134
134
135 virtual void delVirtPort(VirtualPort *vp) = 0;
136
137 virtual void connectMemPorts(ThreadContext *tc) = 0;
138#else
139 virtual TranslatingPort *getMemPort() = 0;
140
141 virtual Process *getProcessPtr() = 0;
142#endif
143
144 virtual Status status() const = 0;

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

316#if FULL_SYSTEM
317 System *getSystemPtr() { return actualTC->getSystemPtr(); }
318
319 TheISA::Kernel::Statistics *getKernelStats()
320 { return actualTC->getKernelStats(); }
321
322 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); }
323
135 virtual void connectMemPorts(ThreadContext *tc) = 0;
136#else
137 virtual TranslatingPort *getMemPort() = 0;
138
139 virtual Process *getProcessPtr() = 0;
140#endif
141
142 virtual Status status() const = 0;

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

314#if FULL_SYSTEM
315 System *getSystemPtr() { return actualTC->getSystemPtr(); }
316
317 TheISA::Kernel::Statistics *getKernelStats()
318 { return actualTC->getKernelStats(); }
319
320 FunctionalPort *getPhysPort() { return actualTC->getPhysPort(); }
321
324 VirtualPort *getVirtPort(ThreadContext *tc = NULL) { return actualTC->getVirtPort(tc); }
322 VirtualPort *getVirtPort() { return actualTC->getVirtPort(); }
325
323
326 void delVirtPort(VirtualPort *vp) { return actualTC->delVirtPort(vp); }
327
328 void connectMemPorts(ThreadContext *tc) { actualTC->connectMemPorts(tc); }
329#else
330 TranslatingPort *getMemPort() { return actualTC->getMemPort(); }
331
332 Process *getProcessPtr() { return actualTC->getProcessPtr(); }
333#endif
334
335 Status status() const { return actualTC->status(); }

--- 147 unchanged lines hidden ---
324 void connectMemPorts(ThreadContext *tc) { actualTC->connectMemPorts(tc); }
325#else
326 TranslatingPort *getMemPort() { return actualTC->getMemPort(); }
327
328 Process *getProcessPtr() { return actualTC->getProcessPtr(); }
329#endif
330
331 Status status() const { return actualTC->status(); }

--- 147 unchanged lines hidden ---