- Timestamp:
- Jun 27, 2014, 4:48:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fault_tolerance/platforms/tsar_generic_iob/top.cpp
r724 r728 363 363 if ((strcmp(argv[n],"-NCYCLES") == 0) && (n+1<argc)) 364 364 { 365 ncycles = atoi(argv[n+1]);365 ncycles = strtol(argv[n+1], NULL, 0); 366 366 } 367 367 else if ((strcmp(argv[n],"-SOFT") == 0) && (n+1<argc) ) … … 372 372 { 373 373 debug_ok = true; 374 debug_from = atoi(argv[n+1]);374 debug_from = strtol(argv[n+1], NULL, 0); 375 375 } 376 376 else if ((strcmp(argv[n],"-DISK") == 0) && (n+1<argc) ) … … 380 380 else if ((strcmp(argv[n],"-MEMCID") == 0) && (n+1<argc) ) 381 381 { 382 debug_memc_id = atoi(argv[n+1]);382 debug_memc_id = strtol(argv[n+1], NULL, 0); 383 383 size_t x = debug_memc_id >> 4; 384 384 size_t y = debug_memc_id & 0xF; … … 391 391 else if ((strcmp(argv[n],"-XRAMID") == 0) && (n+1<argc) ) 392 392 { 393 debug_xram_id = atoi(argv[n+1]);393 debug_xram_id = strtol(argv[n+1], NULL, 0); 394 394 size_t x = debug_xram_id >> 4; 395 395 size_t y = debug_xram_id & 0xF; … … 402 402 else if ((strcmp(argv[n],"-IOB") == 0) && (n+1<argc) ) 403 403 { 404 debug_iob = atoi(argv[n+1]);404 debug_iob = strtol(argv[n+1], NULL, 0); 405 405 } 406 406 else if ((strcmp(argv[n],"-PROCID") == 0) && (n+1<argc) ) 407 407 { 408 debug_proc_id = atoi(argv[n+1]);408 debug_proc_id = strtol(argv[n+1], NULL, 0); 409 409 size_t cluster_xy = debug_proc_id / NB_PROCS_MAX ; 410 410 size_t x = cluster_xy >> 4; … … 418 418 else if ((strcmp(argv[n], "-THREADS") == 0) && ((n+1) < argc)) 419 419 { 420 threads_nr = atoi(argv[n+1]);420 threads_nr = strtol(argv[n+1], NULL, 0); 421 421 threads_nr = (threads_nr < 1) ? 1 : threads_nr; 422 422 } 423 423 else if ((strcmp(argv[n], "-FROZEN") == 0) && (n+1 < argc)) 424 424 { 425 frozen_cycles = atoi(argv[n+1]);425 frozen_cycles = strtol(argv[n+1], NULL, 0); 426 426 } 427 427 else if ((strcmp(argv[n], "-PERIOD") == 0) && (n+1 < argc)) 428 428 { 429 debug_period = atoi(argv[n+1]);429 debug_period = strtol(argv[n+1], NULL, 0); 430 430 } 431 431 else
Note: See TracChangeset
for help on using the changeset viewer.