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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [testsuite/] [test-code/] [lib-iftest/] [lib-iftest.c] - Diff between revs 90 and 220

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

Rev 90 Rev 220
Line 67... Line 67...
    {
    {
      fprintf (stderr, "ERROR. Duration must be positive number of ms\n");
      fprintf (stderr, "ERROR. Duration must be positive number of ms\n");
      return  1;
      return  1;
    }
    }
 
 
 
  /* Dummy argv array to pass arguments to or1ksim_init. Varies depending on
 
     whether an image file is specified. */
 
  int   dummy_argc;
 
  char *dummy_argv[5];
 
 
 
  dummy_argv[0] = "libsim";
 
  dummy_argv[1] = "-q";
 
  dummy_argv[2] = "-f";
 
  dummy_argv[3] = argv[1];
 
  dummy_argv[4] = argv[2];
 
 
 
  dummy_argc = 5;
 
 
  /* Put the initialization message afterwards, or it will get swamped by the
  /* Put the initialization message afterwards, or it will get swamped by the
     Or1ksim header. */
     Or1ksim header. */
  if (0 == or1ksim_init (argv[1], argv[2], NULL, NULL, NULL))
  if (0 == or1ksim_init (dummy_argc, dummy_argv, NULL, NULL, NULL))
    {
    {
      printf ("Initalization succeeded.\n");
      printf ("Initalization succeeded.\n");
    }
    }
  else
  else
    {
    {

powered by: WebSVN 2.1.0

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