thread_context.hh (5668:5b5a9f4203d1) | thread_context.hh (5712:199d31b47f7b) |
---|---|
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; --- 101 unchanged lines hidden (view full) --- 110 /// this state, the simulation will terminate. 111 Halted 112 }; 113 114 virtual ~ThreadContext() { }; 115 116 virtual BaseCPU *getCpuPtr() = 0; 117 | 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; --- 101 unchanged lines hidden (view full) --- 110 /// this state, the simulation will terminate. 111 Halted 112 }; 113 114 virtual ~ThreadContext() { }; 115 116 virtual BaseCPU *getCpuPtr() = 0; 117 |
118 virtual void setCpuId(int id) = 0; | 118 virtual int cpuId() = 0; |
119 | 119 |
120 virtual int readCpuId() = 0; 121 | |
122 virtual TheISA::ITB *getITBPtr() = 0; 123 124 virtual TheISA::DTB *getDTBPtr() = 0; 125 126#if FULL_SYSTEM 127 virtual System *getSystemPtr() = 0; 128 129 virtual TheISA::Kernel::Statistics *getKernelStats() = 0; --- 165 unchanged lines hidden (view full) --- 295 296 private: 297 TC *actualTC; 298 299 public: 300 301 BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); } 302 | 120 virtual TheISA::ITB *getITBPtr() = 0; 121 122 virtual TheISA::DTB *getDTBPtr() = 0; 123 124#if FULL_SYSTEM 125 virtual System *getSystemPtr() = 0; 126 127 virtual TheISA::Kernel::Statistics *getKernelStats() = 0; --- 165 unchanged lines hidden (view full) --- 293 294 private: 295 TC *actualTC; 296 297 public: 298 299 BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); } 300 |
303 void setCpuId(int id) { actualTC->setCpuId(id); } | 301 int cpuId() { return actualTC->cpuId(); } |
304 | 302 |
305 int readCpuId() { return actualTC->readCpuId(); } 306 | |
307 TheISA::ITB *getITBPtr() { return actualTC->getITBPtr(); } 308 309 TheISA::DTB *getDTBPtr() { return actualTC->getDTBPtr(); } 310 311#if FULL_SYSTEM 312 System *getSystemPtr() { return actualTC->getSystemPtr(); } 313 314 TheISA::Kernel::Statistics *getKernelStats() --- 155 unchanged lines hidden --- | 303 TheISA::ITB *getITBPtr() { return actualTC->getITBPtr(); } 304 305 TheISA::DTB *getDTBPtr() { return actualTC->getDTBPtr(); } 306 307#if FULL_SYSTEM 308 System *getSystemPtr() { return actualTC->getSystemPtr(); } 309 310 TheISA::Kernel::Statistics *getKernelStats() --- 155 unchanged lines hidden --- |