1 1.1 christos #include "config.h" 2 1.1 christos #include <stdio.h> 3 1.1 christos #include "sis.h" 4 1.1 christos 5 1.1 christos void 6 1.1 christos usage() 7 1.1 christos { 8 1.1 christos 9 1.1 christos printf("usage: sis [-uart1 uart_device1] [-uart2 uart_device2]\n"); 10 1.1 christos printf("[-nfp] [-freq frequency] [-c batch_file] [files]\n"); 11 1.1 christos printf("[-sparclite] [-dumbio]\n"); 12 1.1 christos } 13 1.1 christos 14 1.1 christos void 15 1.1 christos gen_help() 16 1.1 christos { 17 1.1 christos 18 1.1 christos printf("\n batch <file> execute a batch file of SIS commands\n"); 19 1.1 christos printf(" +bp <addr> add a breakpoint at <addr>\n"); 20 1.1 christos printf(" -bp <num> delete breakpoint <num>\n"); 21 1.1 christos printf(" bp print all breakpoints\n"); 22 1.1 christos printf(" cont [icnt] continue execution for [icnt] instructions\n"); 23 1.1 christos printf(" deb <level> set debug level\n"); 24 1.1 christos printf(" dis [addr] [count] disassemble [count] instructions at address [addr]\n"); 25 1.1 christos printf(" echo <string> print <string> to the simulator window\n"); 26 1.1 christos #ifdef ERRINJ 27 1.1 christos printf(" error <period> inject error traps in IU and FPU\n"); 28 1.1 christos #endif 29 1.1 christos printf(" float print the FPU registers\n"); 30 1.1 christos printf(" go <addr> [icnt] start execution at <addr> for [icnt] instructions\n"); 31 1.1 christos printf(" hist [trace_length] enable/show trace history\n"); 32 1.1 christos printf(" load <file_name> load a file into simulator memory\n"); 33 1.1 christos printf(" mem [addr] [count] display memory at [addr] for [count] bytes\n"); 34 1.1 christos printf(" quit exit the simulator\n"); 35 1.1 christos printf(" perf [reset] show/reset performance statistics\n"); 36 1.1 christos printf(" reg [w<0-7>] show integer registers (or windows, eg 're w2')\n"); 37 1.1 christos printf(" run [inst_count] reset and start execution for [icnt] instruction\n"); 38 1.1 christos printf(" step single step\n"); 39 1.1 christos printf(" tra [inst_count] trace [inst_count] instructions\n"); 40 1.1 christos printf("\n type Ctrl-C to interrupt execution\n\n"); 41 1.1 christos } 42