URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [or1ksim/] [libtoplevel.c] - Diff between revs 1756 and 1757
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1756 |
Rev 1757 |
Line 65... |
Line 65... |
unsigned long int mask),
|
unsigned long int mask),
|
void (*upw) (void *class_ptr,
|
void (*upw) (void *class_ptr,
|
unsigned long int addr,
|
unsigned long int addr,
|
unsigned long int mask, unsigned long int wdata))
|
unsigned long int mask, unsigned long int wdata))
|
{
|
{
|
int dummy_argc = 4;
|
int dummy_argc;
|
char *dummy_argv[4];
|
char *dummy_argv[4];
|
|
|
/* Dummy argv array */
|
/* Dummy argv array. Varies depending on whether an image file is
|
|
specified. */
|
dummy_argv[0] = "libsim";
|
dummy_argv[0] = "libsim";
|
dummy_argv[1] = "-f";
|
dummy_argv[1] = "-f";
|
dummy_argv[2] = (char *) ((NULL != config_file) ? config_file : "sim.cfg");
|
dummy_argv[2] = (char *) ((NULL != config_file) ? config_file : "sim.cfg");
|
dummy_argv[3] = (char *) image_file;
|
dummy_argv[3] = (char *) image_file;
|
|
|
|
dummy_argc = (NULL == image_file) ? 3 : 4;
|
|
|
/* Initialization copied from existing main() */
|
/* Initialization copied from existing main() */
|
srand (getpid ());
|
srand (getpid ());
|
init_defconfig ();
|
init_defconfig ();
|
reg_config_secs ();
|
reg_config_secs ();
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.