From 83d96c6e3ef740fa40558b4a12bfa832838fcc8e Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Mon, 2 Oct 1995 18:19:17 +0000 Subject: Add support to count the number of instructions issued. --- sim/ppc/main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sim/ppc/main.c') diff --git a/sim/ppc/main.c b/sim/ppc/main.c index 31c85e0..5ce3a0d 100644 --- a/sim/ppc/main.c +++ b/sim/ppc/main.c @@ -81,10 +81,11 @@ main(int argc, char **argv) psim_status status; int letter; int i; + int print_info = 0; /* check for arguments -- note sim_calls.c also contains argument processing code for the simulator linked within gdb. */ - while ((letter = getopt (argc, argv, "acCipst")) != EOF) + while ((letter = getopt (argc, argv, "acCiIpst")) != EOF) { switch (letter) { case 'a': @@ -106,6 +107,9 @@ main(int argc, char **argv) case 'i': trace[trace_icu_device] = 1; break; + case 'I': + print_info = 1; + break; case 't': trace[trace_device_tree] = 1; break; @@ -133,6 +137,9 @@ main(int argc, char **argv) psim_run(system); + if (print_info) + psim_print_info (system, 1); + /* why did we stop */ status = psim_get_status(system); switch (status.reason) { -- cgit v1.1