simple_thread.cc (12181:2150eff234c1) simple_thread.cc (12406:86bde4a026b5)
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;

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

57#include "sim/serialize.hh"
58#include "sim/sim_exit.hh"
59#include "sim/system.hh"
60
61using namespace std;
62
63// constructor
64SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys,
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;

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

57#include "sim/serialize.hh"
58#include "sim/sim_exit.hh"
59#include "sim/system.hh"
60
61using namespace std;
62
63// constructor
64SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys,
65 Process *_process, TheISA::TLB *_itb,
66 TheISA::TLB *_dtb, TheISA::ISA *_isa)
65 Process *_process, BaseTLB *_itb,
66 BaseTLB *_dtb, TheISA::ISA *_isa)
67 : ThreadState(_cpu, _thread_num, _process), isa(_isa),
68 predicate(false), system(_sys),
69 itb(_itb), dtb(_dtb)
70{
71 clearArchRegs();
72 tc = new ProxyThreadContext<SimpleThread>(this);
73 quiesceEvent = new EndQuiesceEvent(tc);
74}
75
76SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys,
67 : ThreadState(_cpu, _thread_num, _process), isa(_isa),
68 predicate(false), system(_sys),
69 itb(_itb), dtb(_dtb)
70{
71 clearArchRegs();
72 tc = new ProxyThreadContext<SimpleThread>(this);
73 quiesceEvent = new EndQuiesceEvent(tc);
74}
75
76SimpleThread::SimpleThread(BaseCPU *_cpu, int _thread_num, System *_sys,
77 TheISA::TLB *_itb, TheISA::TLB *_dtb,
77 BaseTLB *_itb, BaseTLB *_dtb,
78 TheISA::ISA *_isa, bool use_kernel_stats)
79 : ThreadState(_cpu, _thread_num, NULL), isa(_isa), system(_sys), itb(_itb),
80 dtb(_dtb)
81{
82 tc = new ProxyThreadContext<SimpleThread>(this);
83
84 quiesceEvent = new EndQuiesceEvent(tc);
85

--- 141 unchanged lines hidden ---
78 TheISA::ISA *_isa, bool use_kernel_stats)
79 : ThreadState(_cpu, _thread_num, NULL), isa(_isa), system(_sys), itb(_itb),
80 dtb(_dtb)
81{
82 tc = new ProxyThreadContext<SimpleThread>(this);
83
84 quiesceEvent = new EndQuiesceEvent(tc);
85

--- 141 unchanged lines hidden ---