diff --git a/aerialvision/ply/__pycache__/__init__.cpython-38.pyc b/aerialvision/ply/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 000000000..7b1be8d07 Binary files /dev/null and b/aerialvision/ply/__pycache__/__init__.cpython-38.pyc differ diff --git a/aerialvision/ply/__pycache__/lex.cpython-38.pyc b/aerialvision/ply/__pycache__/lex.cpython-38.pyc new file mode 100644 index 000000000..f24edf84f Binary files /dev/null and b/aerialvision/ply/__pycache__/lex.cpython-38.pyc differ diff --git a/aerialvision/ply/__pycache__/yacc.cpython-38.pyc b/aerialvision/ply/__pycache__/yacc.cpython-38.pyc new file mode 100644 index 000000000..139e7420c Binary files /dev/null and b/aerialvision/ply/__pycache__/yacc.cpython-38.pyc differ diff --git a/src/debug.cc b/src/debug.cc index 29506bd75..e90607cf3 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -130,9 +130,13 @@ void gpgpu_sim::gpgpu_debug() { if (!strcmp(tok, "dp")) { int shader_num = 0; tok = strtok(NULL, " \t\n"); - sscanf(tok, "%d", &shader_num); - dump_pipeline((0x40 | 0x4 | 0x1), shader_num, 0); - printf("\n"); + if (0x0 == tok) { + printf("Hint: dp must take with to display pipeline contents on SM \n"); + } else { + sscanf(tok, "%d", &shader_num); + dump_pipeline((0x40 | 0x4 | 0x1), shader_num, 0); + printf("\n"); + } fflush(stdout); } else if (!strcmp(tok, "q") || !strcmp(tok, "quit")) { printf("\nreally quit GPGPU-Sim (y/n)?\n");