simple_thread.cc (9180:ee8d7a51651d) | simple_thread.cc (9377:6f294e7a93d1) |
---|---|
1/* 2 * Copyright (c) 2001-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; --- 49 unchanged lines hidden (view full) --- 58 59using namespace std; 60 61// constructor 62SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys, 63 Process *_process, TheISA::TLB *_itb, 64 TheISA::TLB *_dtb) 65 : ThreadState(_cpu, _thread_num, _process), system(_sys), itb(_itb), | 1/* 2 * Copyright (c) 2001-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; --- 49 unchanged lines hidden (view full) --- 58 59using namespace std; 60 61// constructor 62SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys, 63 Process *_process, TheISA::TLB *_itb, 64 TheISA::TLB *_dtb) 65 : ThreadState(_cpu, _thread_num, _process), system(_sys), itb(_itb), |
66 dtb(_dtb), decoder(NULL) | 66 dtb(_dtb) |
67{ 68 clearArchRegs(); 69 tc = new ProxyThreadContext<SimpleThread>(this); 70} | 67{ 68 clearArchRegs(); 69 tc = new ProxyThreadContext<SimpleThread>(this); 70} |
71 |
|
71SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys, 72 TheISA::TLB *_itb, TheISA::TLB *_dtb, 73 bool use_kernel_stats) | 72SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys, 73 TheISA::TLB *_itb, TheISA::TLB *_dtb, 74 bool use_kernel_stats) |
74 : ThreadState(_cpu, _thread_num, NULL), system(_sys), itb(_itb), dtb(_dtb), 75 decoder(NULL) | 75 : ThreadState(_cpu, _thread_num, NULL), system(_sys), itb(_itb), dtb(_dtb) |
76{ 77 tc = new ProxyThreadContext<SimpleThread>(this); 78 79 quiesceEvent = new EndQuiesceEvent(tc); 80 81 clearArchRegs(); 82 83 if (baseCpu->params()->profile) { --- 10 unchanged lines hidden (view full) --- 94 profileNode = &dummyNode; 95 profilePC = 3; 96 97 if (use_kernel_stats) 98 kernelStats = new TheISA::Kernel::Statistics(system); 99} 100 101SimpleThread::SimpleThread() | 76{ 77 tc = new ProxyThreadContext<SimpleThread>(this); 78 79 quiesceEvent = new EndQuiesceEvent(tc); 80 81 clearArchRegs(); 82 83 if (baseCpu->params()->profile) { --- 10 unchanged lines hidden (view full) --- 94 profileNode = &dummyNode; 95 profilePC = 3; 96 97 if (use_kernel_stats) 98 kernelStats = new TheISA::Kernel::Statistics(system); 99} 100 101SimpleThread::SimpleThread() |
102 : ThreadState(NULL, -1, NULL), decoder(NULL) | 102 : ThreadState(NULL, -1, NULL) |
103{ 104 tc = new ProxyThreadContext<SimpleThread>(this); 105} 106 107SimpleThread::~SimpleThread() 108{ 109 delete tc; 110} --- 157 unchanged lines hidden --- | 103{ 104 tc = new ProxyThreadContext<SimpleThread>(this); 105} 106 107SimpleThread::~SimpleThread() 108{ 109 delete tc; 110} --- 157 unchanged lines hidden --- |