1ed6a76a9Schristos /* This file is part of SIS (SPARC instruction simulator) 2ed6a76a9Schristos 3*1424dfb3Schristos Copyright (C) 1995-2020 Free Software Foundation, Inc. 4ed6a76a9Schristos Contributed by Jiri Gaisler, European Space Agency 5ed6a76a9Schristos 6ed6a76a9Schristos This program is free software; you can redistribute it and/or modify 7ed6a76a9Schristos it under the terms of the GNU General Public License as published by 8ed6a76a9Schristos the Free Software Foundation; either version 3 of the License, or 9ed6a76a9Schristos (at your option) any later version. 10ed6a76a9Schristos 11ed6a76a9Schristos This program is distributed in the hope that it will be useful, 12ed6a76a9Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 13ed6a76a9Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14ed6a76a9Schristos GNU General Public License for more details. 15ed6a76a9Schristos 16ed6a76a9Schristos You should have received a copy of the GNU General Public License 17ed6a76a9Schristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 18ed6a76a9Schristos 1948596154Schristos #include "config.h" 2066e63ce3Schristos #include <stdio.h> 2166e63ce3Schristos #include "sis.h" 2266e63ce3Schristos 2366e63ce3Schristos void usage()2466e63ce3Schristosusage() 2566e63ce3Schristos { 2666e63ce3Schristos 2766e63ce3Schristos printf("usage: sis [-uart1 uart_device1] [-uart2 uart_device2]\n"); 28ed6a76a9Schristos printf("[-sparclite] [-dumbio] [-v] \n"); 2966e63ce3Schristos printf("[-nfp] [-freq frequency] [-c batch_file] [files]\n"); 3066e63ce3Schristos } 3166e63ce3Schristos 3266e63ce3Schristos void gen_help()3366e63ce3Schristosgen_help() 3466e63ce3Schristos { 3566e63ce3Schristos 3666e63ce3Schristos printf("\n batch <file> execute a batch file of SIS commands\n"); 3766e63ce3Schristos printf(" +bp <addr> add a breakpoint at <addr>\n"); 3866e63ce3Schristos printf(" -bp <num> delete breakpoint <num>\n"); 3966e63ce3Schristos printf(" bp print all breakpoints\n"); 4066e63ce3Schristos printf(" cont [icnt] continue execution for [icnt] instructions\n"); 4166e63ce3Schristos printf(" deb <level> set debug level\n"); 4266e63ce3Schristos printf(" dis [addr] [count] disassemble [count] instructions at address [addr]\n"); 4366e63ce3Schristos printf(" echo <string> print <string> to the simulator window\n"); 4466e63ce3Schristos #ifdef ERRINJ 4566e63ce3Schristos printf(" error <period> inject error traps in IU and FPU\n"); 4666e63ce3Schristos #endif 4766e63ce3Schristos printf(" float print the FPU registers\n"); 4866e63ce3Schristos printf(" go <addr> [icnt] start execution at <addr> for [icnt] instructions\n"); 4966e63ce3Schristos printf(" hist [trace_length] enable/show trace history\n"); 5066e63ce3Schristos printf(" load <file_name> load a file into simulator memory\n"); 5166e63ce3Schristos printf(" mem [addr] [count] display memory at [addr] for [count] bytes\n"); 5266e63ce3Schristos printf(" quit exit the simulator\n"); 5366e63ce3Schristos printf(" perf [reset] show/reset performance statistics\n"); 5466e63ce3Schristos printf(" reg [w<0-7>] show integer registers (or windows, eg 're w2')\n"); 5566e63ce3Schristos printf(" run [inst_count] reset and start execution for [icnt] instruction\n"); 5666e63ce3Schristos printf(" step single step\n"); 5766e63ce3Schristos printf(" tra [inst_count] trace [inst_count] instructions\n"); 5866e63ce3Schristos printf("\n type Ctrl-C to interrupt execution\n\n"); 5966e63ce3Schristos } 60