simple_thread.cc (8809:bb10807da889) simple_thread.cc (8820:f39690f70bab)
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;

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

54#include "sim/process.hh"
55#include "sim/serialize.hh"
56#include "sim/sim_exit.hh"
57#include "sim/system.hh"
58
59using namespace std;
60
61// constructor
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;

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

54#include "sim/process.hh"
55#include "sim/serialize.hh"
56#include "sim/sim_exit.hh"
57#include "sim/system.hh"
58
59using namespace std;
60
61// constructor
62SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, Process *_process,
63 TheISA::TLB *_itb, TheISA::TLB *_dtb)
64 : ThreadState(_cpu, _thread_num, _process), itb(_itb), dtb(_dtb)
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)
65{
66 clearArchRegs();
67 tc = new ProxyThreadContext<SimpleThread>(this);
68}
69SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys,
70 TheISA::TLB *_itb, TheISA::TLB *_dtb,
71 bool use_kernel_stats)
72 : ThreadState(_cpu, _thread_num, NULL), system(_sys), itb(_itb), dtb(_dtb)

--- 192 unchanged lines hidden ---
67{
68 clearArchRegs();
69 tc = new ProxyThreadContext<SimpleThread>(this);
70}
71SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys,
72 TheISA::TLB *_itb, TheISA::TLB *_dtb,
73 bool use_kernel_stats)
74 : ThreadState(_cpu, _thread_num, NULL), system(_sys), itb(_itb), dtb(_dtb)

--- 192 unchanged lines hidden ---