simple_thread.cc (4400:619191b2f011) | simple_thread.cc (4997:e7380529bd2d) |
---|---|
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; --- 79 unchanged lines hidden (view full) --- 88 89 if (use_kernel_stats) { 90 kernelStats = new TheISA::Kernel::Statistics(system); 91 } else { 92 kernelStats = NULL; 93 } 94} 95#else | 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; --- 79 unchanged lines hidden (view full) --- 88 89 if (use_kernel_stats) { 90 kernelStats = new TheISA::Kernel::Statistics(system); 91 } else { 92 kernelStats = NULL; 93 } 94} 95#else |
96SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, 97 Process *_process, int _asid) | 96SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, Process *_process, 97 TheISA::ITB *_itb, TheISA::DTB *_dtb, int _asid) |
98 : ThreadState(_cpu, -1, _thread_num, _process, _asid), | 98 : ThreadState(_cpu, -1, _thread_num, _process, _asid), |
99 cpu(_cpu) | 99 cpu(_cpu), itb(_itb), dtb(_dtb) |
100{ 101 regs.clear(); 102 tc = new ProxyThreadContext<SimpleThread>(this); 103} 104 105#endif 106 107SimpleThread::SimpleThread() --- 207 unchanged lines hidden --- | 100{ 101 regs.clear(); 102 tc = new ProxyThreadContext<SimpleThread>(this); 103} 104 105#endif 106 107SimpleThread::SimpleThread() --- 207 unchanged lines hidden --- |