OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_68/] [or1ksim/] [sim-config.c] - Diff between revs 479 and 481

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 479 Rev 481
Line 132... Line 132...
      argc--;
      argc--;
      argv++;
      argv++;
    } else
    } else
    if (strcmp(*argv, "-f") == 0 || strcmp(*argv, "--file") == 0) {
    if (strcmp(*argv, "-f") == 0 || strcmp(*argv, "--file") == 0) {
      argv++; argc--;
      argv++; argc--;
 
      if (argv[0]) {
      read_script_file(argv[0]);
      read_script_file(argv[0]);
      argv++; argc--;
      argv++; argc--;
 
      } else {
 
        fprintf(stderr, "Configure filename not specified!\n");
 
        return 1;
 
      }
    } else
    } else
    if (strcmp(*argv, "--nosrv") == 0) {  /* (CZ) */
    if (strcmp(*argv, "--nosrv") == 0) {  /* (CZ) */
      config.debug.gdb_enabled = 0;
      config.debug.gdb_enabled = 0;
      argv++; argc--;
      argv++; argc--;
    } else
    } else
Line 162... Line 167...
    } else
    } else
    if (strcmp(*argv, "--profile") == 0) {
    if (strcmp(*argv, "--profile") == 0) {
      config.sim.profile = 1;
      config.sim.profile = 1;
      argv++; argc--;
      argv++; argc--;
    } else {
    } else {
      printf("Unknown option: %s\n", *argv);
      fprintf(stderr, "Unknown option: %s\n", *argv);
      return 1;
      return 1;
    }
    }
  }
  }
 
 
  if (!argc)
  if (!argc)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.