Line 77... |
Line 77... |
static int gdb_read(void*,int);
|
static int gdb_read(void*,int);
|
static int gdb_write(void*,int);
|
static int gdb_write(void*,int);
|
void BlockJTAG(void);
|
void BlockJTAG(void);
|
|
|
/* CVS revision number. */
|
/* CVS revision number. */
|
const char rcsrev[] = "$Revision: 1.32 $";
|
const char rcsrev[] = "$Revision: 1.33 $";
|
|
|
/* Continuos run versus single step tracing switch. */
|
/* Continuos run versus single step tracing switch. */
|
int cont_run;
|
int cont_run;
|
|
|
/* History of execution */
|
/* History of execution */
|
Line 234... |
Line 234... |
srand(getpid());
|
srand(getpid());
|
init_defconfig();
|
init_defconfig();
|
if (parse_args(argc, argv)) {
|
if (parse_args(argc, argv)) {
|
printf("Usage: %s [options] <filename>\n", argv[0]);
|
printf("Usage: %s [options] <filename>\n", argv[0]);
|
printf("Options:\n");
|
printf("Options:\n");
|
printf(" -v: version and copyright note\n");
|
printf(" -v\t\t version and copyright note\n");
|
printf(" -i: enable interactive command prompt\n");
|
printf(" -i\t\t enable interactive command prompt\n");
|
printf(" -bpb: disable branch prediction buffer analysis\n");
|
printf(" -f or --file\t change script file [sim.cfg]\n");
|
printf(" -btic: disable branch prediction target insn cache analysis\n");
|
printf(" --bpb\t\t disable branch prediction buffer analysis\n");
|
printf(" -hazards: disable dependency hazards analysis\n");
|
printf(" --btic\t disable branch prediction target insn cache analysis\n");
|
printf(" -history: disable instruction stream history analysis\n");
|
printf(" --nosrv\t do not launch JTAG proxy server\n"); /* (CZ) */
|
printf(" -superscalar: disable superscalar analysis\n");
|
printf(" --srv <n>\t launch JTAG proxy server on port <n>; [random]\n"); /* (CZ) */
|
printf(" -fast: disable BPB, BTIC, SLP, dependency hazards, history"
|
|
" analysis etc.\n");
|
|
printf(" -profile: generates profiling data.\n"); /* MM */
|
|
printf(" -upr <n>: set UPR to n\n");
|
|
printf(" -ver <n>: set VR[VER] to n\n");
|
|
printf(" -rev <n>: set VR[REV] to n\n");
|
|
printf(" -nosrv: do not launch JTAG proxy server\n"); /* (CZ) */
|
|
printf(" -srv <n>: launch JTAG proxy server on port <n>\n"); /* (CZ) */
|
|
exit(-1);
|
exit(-1);
|
}
|
}
|
|
|
#ifdef HAVE_LIBREADLINE
|
#ifdef HAVE_LIBREADLINE
|
initialize_readline (); /* Bind our completer. */
|
initialize_readline (); /* Bind our completer. */
|
Line 273... |
Line 265... |
} else
|
} else
|
fprintf(config.fprof, "+00000000 FFFFFFFF FFFFFFFF main\n");
|
fprintf(config.fprof, "+00000000 FFFFFFFF FFFFFFFF main\n");
|
}
|
}
|
|
|
/* Read configuration file. */
|
/* Read configuration file. */
|
read_script_file("sim.cfg");
|
read_script_file(config.script_file);
|
init_labels();
|
init_labels();
|
init_breakpoints();
|
init_breakpoints();
|
print_config();
|
print_config();
|
signal(SIGINT, ctrl_c);
|
signal(SIGINT, ctrl_c);
|
initstats();
|
initstats();
|