aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/main.c')
-rw-r--r--sim/ppc/main.c9
1 files changed, 8 insertions, 1 deletions
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) {