software updaet for new thread mask design

This commit is contained in:
Blaise Tine
2021-08-05 22:39:39 -04:00
parent e4d9fd8a00
commit d7948a1ce6
24 changed files with 8470 additions and 8430 deletions

View File

@@ -817,10 +817,9 @@ void Warp::execute(const Instr &instr, Pipeline *pipeline) {
switch (func3) {
case 0: {
// TMC
int active_threads = std::min<int>(rsdata[0], num_threads);
tmask_.reset();
for (int i = 0; i < active_threads; ++i) {
tmask_[i] = true;
for (size_t i = 0; i < tmask_.size(); ++i) {
tmask_[i] = rsdata[0] & (1 << i);
}
active_ = tmask_.any();
pipeline->stall_warp = true;