Searched refs:thread (Results 1 - 25 of 95) sorted by relevance

1234

/gem5/src/cpu/o3/
H A Dthread_context_impl.hh60 return thread->getVirtProxy();
67 thread->dumpFuncProfile();
79 thread->kernelStats = old_context->getKernelStats();
80 thread->funcExeInst = old_context->readFuncExeInst();
82 thread->noSquashFromTC = false;
83 thread->trapPending = false;
93 if (thread->status() == ThreadContext::Active)
96 thread->lastActivate = curTick();
97 thread->setStatus(ThreadContext::Active);
100 cpu->activateContext(thread
[all...]
H A Dthread_context.hh59 * single thread's state and some general CPU state. Any time
78 /** Pointer to the thread state that this TC corrseponds to. */
79 O3ThreadState<Impl> *thread; member in class:O3ThreadContext
92 return cpu->isa[thread->threadId()];
98 return cpu->fetch.decoder[thread->threadId()];
110 ContextID contextId() const override { return thread->contextId(); }
112 void setContextId(ContextID id) override { thread->setContextId(id); }
114 /** Returns this thread's ID number. */
115 int threadId() const override { return thread->threadId(); }
116 void setThreadId(int id) override { return thread
[all...]
H A Ddyn_inst_impl.hh135 bool no_squash_from_TC = this->thread->noSquashFromTC;
136 this->thread->noSquashFromTC = true;
140 this->thread->noSquashFromTC = no_squash_from_TC;
153 bool no_squash_from_TC = this->thread->noSquashFromTC;
154 this->thread->noSquashFromTC = true;
158 this->thread->noSquashFromTC = no_squash_from_TC;
171 bool no_squash_from_TC = this->thread->noSquashFromTC;
172 this->thread->noSquashFromTC = true;
182 this->thread->noSquashFromTC = no_squash_from_TC;
/gem5/src/systemc/tests/systemc/misc/unit/control/wait/
H A Dwait.cpp73 SC_THREAD(thread);
77 void thread() { function
102 sc_core::sc_process_handle hnd( sc_core::sc_find_object("dut.thread") );
103 const sc_core::sc_process_b *thread local
105 sc_assert(hnd.valid() && thread);
107 sc_assert(thread->file == NULL); // 1st wait(delay)
108 sc_assert(thread->lineno == 0);
112 sc_assert(endsWith(thread->file, "wait.cpp")); // SC_WAITN
113 sc_assert(thread->lineno == lineno);
115 sc_assert(thread
[all...]
/gem5/src/systemc/tests/systemc/kernel/dynamic_processes/test08/
H A Dtest08.cpp56 void thread() function in class:prim_channel
58 cout << "thread here..." << endl;
63 sc_spawn( sc_bind(&prim_channel::thread,this),
64 sc_gen_unique_name("thread"));
76 SC_CTHREAD(thread,m_clk.pos());
78 void thread() function
/gem5/src/systemc/core/
H A Dprocess_types.hh84 Context(Thread *thread, size_t size) : Fiber(size), thread(thread) {} argument
87 Thread *thread; member in class:sc_gem5::Thread::Context
92 thread->_needsStart = false;
94 thread->run();
96 thread->terminate();
100 thread->terminate();
/gem5/ext/pybind11/tests/
H A Dtest_gil_scoped.py40 thread = threading.Thread(target=_python_to_cpp_to_python)
41 thread.daemon = True
42 thread.start()
44 threads.append(thread)
46 thread.join()
47 for thread in threads:
48 thread.join()
52 """Makes sure there is no GIL deadlock when running in a thread.
60 """Makes sure there is no GIL deadlock when running in a thread multiple times in parallel.
68 """Makes sure there is no GIL deadlock when running in a thread multipl
[all...]
/gem5/tests/test-progs/pthread/src/
H A Dtest_std_mutex.cpp41 #include <thread>
46 // thread.
47 // Each child thread increments a shared variable m times
57 std::vector< std::thread > threads;
65 // number of steps each thread increments the shared_var
70 threads.push_back( std::thread( [&] {
H A Dtest_std_condition_variable.cpp41 #include <thread>
47 // The master thread creates N threads, each of which waits on a
48 // condition variable of a signal to start. The master thread then set
63 std::cout << "thread " << id << '\n';
77 std::vector< std::thread > threads;
81 threads.push_back( std::thread( print_id, i ) );
H A Dtest_std_thread.cpp41 #include <thread>
45 // Test std::thread
48 // thread.
49 // Each child thread writes its thread id to an output array
57 std::vector< std::thread > threads;
62 threads.push_back( std::thread( [&] (size_t thread_id ) {
63 std::cout << "Hello from thread " << thread_id
73 std::cout << "Hello from master thread" << std::endl;
/gem5/src/systemc/tests/systemc/communication/sc_signal/check_writer/test13/
H A Dtest13.cpp44 SC_CTHREAD(thread,m_clk.pos());
46 void thread() function
/gem5/src/systemc/tests/systemc/kernel/sc_module/test10/
H A Dtest10.cpp45 SC_THREAD(thread);
49 void thread() function
/gem5/src/systemc/tests/systemc/kernel/sc_simcontext/sc_delta_count/
H A Dsc_delta_count.cpp9 SC_THREAD(thread)
14 void thread() function
/gem5/src/cpu/minor/
H A Dexec_context.hh80 SimpleThread &thread; member in class:Minor::ExecContext
93 thread(thread_),
101 thread.setIntReg(TheISA::ZeroReg, 0);
103 thread.setFloatReg(TheISA::ZeroReg, 0);
148 return thread.readIntReg(reg.index());
156 return thread.readFloatReg(reg.index());
164 return thread.readVecReg(reg);
172 return thread.getWritableVecReg(reg);
180 return thread.readVecElem(reg);
188 return thread
[all...]
H A Dfetch1.cc118 /* Select thread via policy. */
150 /* Reference the currently used thread state. */
151 Fetch1ThreadInfo &thread = fetchInfo[tid]; local
156 Addr aligned_pc = thread.pc.instAddr() & ~((Addr) lineSnap - 1);
162 thread.streamSeqNum, thread.predictionSeqNum,
165 FetchRequestPtr request = new FetchRequest(*this, request_id, thread.pc);
169 request_id, aligned_pc, thread.pc, line_offset, request_size);
175 thread.pc.instAddr());
201 Addr pc_low_bits = thread
491 Fetch1ThreadInfo &thread = fetchInfo[branch.threadId]; local
523 Fetch1ThreadInfo &thread = fetchInfo[branch.threadId]; local
542 Fetch1ThreadInfo &thread = fetchInfo[response->id.threadId]; local
588 Fetch1ThreadInfo &thread = fetchInfo[execute_branch.threadId]; local
717 Fetch1ThreadInfo &thread = fetchInfo[tid]; local
732 Fetch1ThreadInfo &thread = fetchInfo[tid]; local
753 Fetch1ThreadInfo &thread = fetch.fetchInfo[id.threadId]; local
766 const Fetch1ThreadInfo &thread = fetchInfo[0]; local
[all...]
/gem5/src/cpu/simple/
H A Dexec_context.hh68 SimpleThread* thread; member in class:SimpleExecContext
172 : cpu(_cpu), thread(_thread), fetchOffset(0), stayAtPC(false),
183 return thread->readIntReg(reg.index());
193 thread->setIntReg(reg.index(), val);
204 return thread->readFloatReg(reg.index());
215 thread->setFloatReg(reg.index(), val);
225 return thread->readVecReg(reg);
235 return thread->getWritableVecReg(reg);
246 thread->setVecReg(reg, val);
259 return thread
[all...]
H A Dbase.cc95 SimpleThread *thread; local
99 thread = new SimpleThread(this, i, p->system,
102 thread = new SimpleThread(this, i, p->system, p->workload[i],
105 threadInfo.push_back(new SimpleExecContext(this, thread));
106 ThreadContext *tc = thread->getTC();
117 // Manipulate thread context
144 Addr oldpc, pc = threadInfo[curThread]->thread->instAddr();
148 pc = threadInfo[curThread]->thread->instAddr();
178 t_info.thread->funcExeInst++;
231 thread_str += ".thread"
452 SimpleThread* thread = t_info.thread; local
472 SimpleThread* thread = t_info.thread; local
489 SimpleThread* thread = t_info.thread; local
583 SimpleThread* thread = t_info.thread; local
673 SimpleThread* thread = t_info.thread; local
[all...]
/gem5/src/arch/arm/tracers/
H A Dtarmac_record.cc121 : InstEntry(tarmCtx.thread, tarmCtx.pc, tarmCtx.staticInst, predicate)
123 secureMode = inSecureState(tarmCtx.thread);
194 auto thread = tarmCtx.thread; local
198 valueLo = thread->readMiscRegNoEffect(regRelIdx);
204 CPSR cpsr = thread->readMiscRegNoEffect(MISCREG_CPSR);
205 cpsr.nz = thread->readCCReg(CCREG_NZ);
206 cpsr.c = thread->readCCReg(CCREG_C);
207 cpsr.v = thread->readCCReg(CCREG_V);
208 cpsr.ge = thread
221 auto thread = tarmCtx.thread; local
234 auto thread = tarmCtx.thread; local
247 auto thread = tarmCtx.thread; local
[all...]
/gem5/src/cpu/checker/
H A Dcpu_impl.hh77 thread->decoder.reset();
82 TheISA::PCState pcState = thread->pcState();
84 thread->pcState(pcState);
85 DPRINTF(Checker, "Advancing PC to %s.\n", thread->pcState());
96 thread->pcState(), instList.size());
121 thread->decoder.reset();
209 thread->setIntReg(ZeroReg, 0);
211 thread->setFloatReg(ZeroReg, 0);
219 thread->pcState());
221 if (newPCState == thread
[all...]
H A Dcpu.hh157 // Primary thread being run.
158 SimpleThread *thread; member in class:CheckerCPU
196 return thread->readIntReg(reg.index());
204 return thread->readFloatReg(reg.index());
215 return thread->readVecReg(reg);
226 return thread->getWritableVecReg(reg);
237 return thread->readVec8BitLaneReg(reg);
246 return thread->readVec16BitLaneReg(reg);
255 return thread->readVec32BitLaneReg(reg);
264 return thread
[all...]
/gem5/src/systemc/tests/systemc/utils/sc_report/test03/
H A Dtest03.cpp44 SC_CTHREAD(thread,m_clk.pos());
47 void thread() function
/gem5/tests/test-progs/threads/src/
H A Dthreads.cpp32 #include <thread>
63 unsigned cpus = thread::hardware_concurrency();
84 thread **threads = new thread*[cpus];
88 threads[i] = new thread(array_add, a, b, c, i, cpus, num_values);
90 // Execute the last thread with this thread context to appease SE mode
/gem5/src/systemc/tests/systemc/kernel/dynamic_processes/test07/
H A Dtest07.cpp52 SC_CTHREAD(thread,m_clk.pos());
64 void thread() function
/gem5/src/systemc/tests/systemc/kernel/process_control/test05/
H A Dtest05.cpp52 SC_CTHREAD(thread,m_clk.pos());
74 void thread() function
/gem5/src/systemc/tests/systemc/kernel/sc_object_manager/test02/
H A Dtest02.cpp50 SC_CTHREAD(thread,m_clk.pos());
61 void thread() function

Completed in 26 milliseconds

1234