URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/or1ksim/testsuite/test-code/lib-jtag
- from Rev 121 to Rev 220
- ↔ Reverse comparison
Rev 121 → Rev 220
/lib-jtag-full.c
1349,9 → 1349,22
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; |
|
/* Initialize the program. Put the initialization message afterwards, or it |
will get swamped by the 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"); |
} |
/lib-jtag.c
246,9 → 246,22
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; |
|
/* Initialize the program. Put the initialization message afterwards, or it |
will get swamped by the 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"); |
} |