This commit is contained in:
Blaise Tine
2021-10-19 03:07:13 -04:00
9 changed files with 172 additions and 15 deletions

View File

@@ -182,6 +182,7 @@ static const char* op_string(const Instr &instr) {
case 2: return "SPLIT";
case 3: return "JOIN";
case 4: return "BAR";
case 6: return "PREFETCH";
default:
std::abort();
}

View File

@@ -712,6 +712,11 @@ void Warp::execute(const Instr &instr, Pipeline *pipeline) {
pipeline->stall_warp = true;
runOnce = true;
} break;
case 6: {
// PREFETCH
int addr = rsdata[0];
printf("*** PREFETCHED %d ***\n", addr);
} break;
default:
std::abort();
}