thread_context.hh (3686:fa8d8b90cd8a) | thread_context.hh (3776:4f88e76d8ebe) |
---|---|
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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Kevin Lim 29 */ 30 31#ifndef __CPU_THREAD_CONTEXT_HH__ 32#define __CPU_THREAD_CONTEXT_HH__ 33 34#include "arch/regfile.hh" | 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; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Kevin Lim 29 */ 30 31#ifndef __CPU_THREAD_CONTEXT_HH__ 32#define __CPU_THREAD_CONTEXT_HH__ 33 34#include "arch/regfile.hh" |
35#include "arch/syscallreturn.hh" | |
36#include "arch/types.hh" 37#include "config/full_system.hh" 38#include "mem/request.hh" 39#include "sim/faults.hh" 40#include "sim/host.hh" 41#include "sim/serialize.hh" | 35#include "arch/types.hh" 36#include "config/full_system.hh" 37#include "mem/request.hh" 38#include "sim/faults.hh" 39#include "sim/host.hh" 40#include "sim/serialize.hh" |
41#include "sim/syscallreturn.hh" |
|
42#include "sim/byteswap.hh" 43 44// @todo: Figure out a more architecture independent way to obtain the ITB and 45// DTB pointers. 46namespace TheISA 47{ 48 class DTB; 49 class ITB; --- 79 unchanged lines hidden (view full) --- 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 | 42#include "sim/byteswap.hh" 43 44// @todo: Figure out a more architecture independent way to obtain the ITB and 45// DTB pointers. 46namespace TheISA 47{ 48 class DTB; 49 class ITB; --- 79 unchanged lines hidden (view full) --- 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 connectMemPorts() = 0; | 137 virtual void init() = 0; |
138#else 139 virtual TranslatingPort *getMemPort() = 0; 140 141 virtual Process *getProcessPtr() = 0; 142#endif 143 144 virtual Status status() const = 0; 145 --- 157 unchanged lines hidden (view full) --- 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 | 138#else 139 virtual TranslatingPort *getMemPort() = 0; 140 141 virtual Process *getProcessPtr() = 0; 142#endif 143 144 virtual Status status() const = 0; 145 --- 157 unchanged lines hidden (view full) --- 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 connectMemPorts() { actualTC->connectMemPorts(); } | 311 void init() {actualTC->init(); } |
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 --- | 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 --- |