Detailed gem5 analysis of how data races happen

And pass niters as a thread argument to all threading implementations...
otherwise every loop has to do a memory load from the global!
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-06-05 06:00:05 +00:00
parent 619fef4b04
commit 0d5c7f5c4c
6 changed files with 162 additions and 19 deletions

View File

@@ -25,9 +25,13 @@ int main(int argc, char **argv) {
request = strtol(argv[2], NULL, 10);
if (argc > 3) {
arg0 = strtol(argv[3], NULL, 10);
} else {
arg0 = 0;
}
if (argc > 4) {
arg1 = strtol(argv[4], NULL, 10);
} else {
arg1 = 0;
}
fd = open(ioctl_path, O_RDONLY);