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

Subversion Repositories openrisc

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

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

Rev 97 Rev 220
Line 320... Line 320...
  if (next_free_byte < regc)
  if (next_free_byte < regc)
    {
    {
      (void)memset (&(regv[next_free_byte]), 0, regc - next_free_byte);
      (void)memset (&(regv[next_free_byte]), 0, regc - next_free_byte);
    }
    }
 
 
 
  /* 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;
 
 
  /* Initialize the program. Put the initialization message afterwards, or it
  /* Initialize the program. Put the initialization message afterwards, or it
     will get swamped by the Or1ksim header. */
     will get swamped by the Or1ksim header. */
  if (0 == or1ksim_init (argv[1], argv[2], NULL, &read_upcall, &write_upcall))
  if (0 == or1ksim_init (dummy_argc, dummy_argv, NULL, &read_upcall,
 
                         &write_upcall))
    {
    {
      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.