Changeset 257 for trunk/platforms/tsarv4_generic_mmu
- Timestamp:
- Aug 26, 2012, 7:14:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsarv4_generic_mmu/top.cpp
r255 r257 61 61 // OS 62 62 /////////////////////////////////////////////////// 63 64 63 #define USE_ALMOS 0 65 #define almos_bootloader_pathname "/Users/alain/soc/tsar-svn-june-2010/softs/almos/bootloader/bin/bootloader-soclib-mipsel.bin" 66 #define almos_kernel_pathname "/Users/alain/soc/tsar-svn-june-2010/softs/almos/kernel/bin/kernel-soclib-mipsel.bin@0xbfc10000:D" 67 #define almos_archinfo_pathname "/Users/alain/soc/tsar-svn-june-2010/softs/almos/arch_bins/arch-info_4_4.bin@0xBFC08000:D" 64 65 #define almos_bootloader_pathname "bootloader.bin" 66 #define almos_kernel_pathname "kernel-soclib.bin@0xbfc10000:D" 67 #define almos_archinfo_pathname "arch-info.bin@0xBFC08000:D" 68 68 69 69 /////////////////////////////////////////////////// 70 70 // Parallelisation 71 71 /////////////////////////////////////////////////// 72 73 72 #define USE_OPENMP 0 74 #define OPENMP_THREADS_NR 875 73 76 74 #if USE_OPENMP 77 75 #include <omp.h> 78 76 #endif 77 /////////////////////////////////////////////////// 79 78 80 79 // cluster index (computed from x,y coordinates) … … 123 122 124 123 #define BDEV_SECTOR_SIZE 512 125 #define BDEV_IMAGE_NAME " /Users/alain/Documents/licence/almo_svn_2011/soft/giet_vm/display/images.raw"126 127 #define BOOT_SOFT_NAME " /Users/alain/Documents/licence/almo_svn_2011/soft/giet_vm/soft.elf"124 #define BDEV_IMAGE_NAME "hdd-img.bin" 125 126 #define BOOT_SOFT_NAME "soft.bin" 128 127 129 128 #define MAX_FROZEN_CYCLES 10000 … … 217 216 size_t blk_size = BDEV_SECTOR_SIZE; // block size (in bytes) 218 217 size_t xram_latency = XRAM_LATENCY; // external RAM latency 218 ssize_t threads_nr = 1; // simulator's threads number 219 219 bool debug_ok = false; // trace activated 220 220 size_t debug_period = 1; // trace period … … 281 281 strcpy(disk_name, argv[n+1]); 282 282 } 283 else if ((strcmp(argv[n],"-BLKSZ") == 0) && ((n+1) < argc)) 284 { 285 blk_size = atoi(argv[n+1]); 286 } 283 287 else if ((strcmp(argv[n],"-TRACE") == 0) && (n+1<argc) ) 284 288 { … … 309 313 { 310 314 xram_latency = atoi(argv[n+1]); 315 } 316 else if ((strcmp(argv[n], "-THREADS") == 0) && ((n+1) < argc)) 317 { 318 threads_nr = atoi(argv[n+1]); 319 threads_nr = (threads_nr < 1) ? 1 : threads_nr; 311 320 } 312 321 else if ((strcmp(argv[n], "-FROZEN") == 0) && (n+1 < argc)) … … 325 334 std::cout << " -SOFT pathname_for_embedded_soft" << std::endl; 326 335 std::cout << " -DISK pathname_for_disk_image" << std::endl; 336 std::cout << " -BLKSZ disk sector size" << std::endl; 327 337 std::cout << " -NCYCLES number_of_simulated_cycles" << std::endl; 328 338 std::cout << " -NPROCS number_of_processors_per_cluster" << std::endl; … … 337 347 std::cout << " -XFB fram_buffer_number_of_pixels" << std::endl; 338 348 std::cout << " -YFB fram_buffer_number_of_lines" << std::endl; 349 std::cout << " -THREADS simulator's threads number" << std::endl; 339 350 std::cout << " -FROZEN max_number_of_lines" << std::endl; 340 351 std::cout << " -PERIOD number_of_cycles between trace" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.