mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
update the code accessing registers in obsoleted way
This commit is contained in:
parent
4a606061d2
commit
d1175a03c9
3 changed files with 7 additions and 3 deletions
|
@ -74,11 +74,11 @@ Emulator::Emulator(const Arch &arch, const DCRS &dcrs, Core* core)
|
|||
, core_(core)
|
||||
, warps_(arch.num_warps(), arch)
|
||||
, barriers_(arch.num_barriers(), 0)
|
||||
, ipdom_size_(arch.num_threads()-1)
|
||||
// [TBC] Currently, tradeoff between scratchpad size & performance has not been evaluated. Scratchpad is
|
||||
// considered to be big enough to hold input tiles for one output tile.
|
||||
// In future versions, scratchpad size should be fixed to an appropriate value.
|
||||
, scratchpad(std::vector<Word>(32 * 32 * 32768))
|
||||
, ipdom_size_(arch.num_threads()-1)
|
||||
{
|
||||
this->clear();
|
||||
}
|
||||
|
|
|
@ -1473,7 +1473,7 @@ void Emulator::execute(const Instr &instr, uint32_t wid, instr_trace_t *trace) {
|
|||
trace->fu_type = FUType::LSU;
|
||||
trace->lsu_type = LsuType::TCU_LOAD;
|
||||
|
||||
trace->used_iregs.set(rsrc0);
|
||||
trace->src_regs[0] = {RegType::Integer, rsrc0};
|
||||
auto trace_data = std::make_shared<LsuTraceData>(num_threads);
|
||||
trace->data = trace_data;
|
||||
|
||||
|
|
|
@ -222,7 +222,10 @@ void LsuUnit::tick() {
|
|||
input.pop();
|
||||
}
|
||||
}
|
||||
///////// TENSOR code TBC ////////////////////////////////
|
||||
/* TO BE FIXED:Tensor_core code
|
||||
send_request is not used anymore. Need to be modified number of load
|
||||
*/
|
||||
/*
|
||||
int LsuUnit::send_requests(instr_trace_t* trace, int block_idx, int tag) {
|
||||
int count = 0;
|
||||
|
||||
|
@ -275,6 +278,7 @@ int LsuUnit::send_requests(instr_trace_t* trace, int block_idx, int tag) {
|
|||
}
|
||||
return count;
|
||||
}
|
||||
*/
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue