Mercurial > hg > Game > Cerium
diff TaskManager/kernel/main.cc @ 1057:8cd123d2f3ca draft
debug_check_spu_idle add. commandline option [-spuidle].
author | tkaito@henri |
---|---|
date | Tue, 14 Dec 2010 23:17:04 +0900 |
parents | 1b225972ae88 |
children | b4b35255a99c |
line wrap: on
line diff
--- a/TaskManager/kernel/main.cc Tue Dec 14 17:36:15 2010 +0900 +++ b/TaskManager/kernel/main.cc Tue Dec 14 23:17:04 2010 +0900 @@ -34,17 +34,19 @@ main(int argc, char *argv[]) { int machineNum = 1; - + int spuIdle = 6; for (int i = 1; argv[i]; ++i) { if (strcmp(argv[i], "-cpu") == 0) { machineNum = atoi(argv[++i]); } else if (strcmp(argv[i], "-p") == 0) { profile = 1; - } + } else if (strcmp(argv[i], "-spuidle") == 0) { + spuIdle = 1; + } } TaskManager *manager = new TaskManager(machineNum); - manager->init(); + manager->init(spuIdle); manager->set_TMend(defaultTMend);