aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/psim.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-10-02 18:19:17 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-10-02 18:19:17 +0000
commit83d96c6e3ef740fa40558b4a12bfa832838fcc8e (patch)
treeb1c803117e0de74519082309450efb600f3a5a37 /sim/ppc/psim.c
parent3d7c42c988b599c12302a1d5786be79b7097248e (diff)
downloadgdb-83d96c6e3ef740fa40558b4a12bfa832838fcc8e.zip
gdb-83d96c6e3ef740fa40558b4a12bfa832838fcc8e.tar.gz
gdb-83d96c6e3ef740fa40558b4a12bfa832838fcc8e.tar.bz2
Add support to count the number of instructions issued.
Diffstat (limited to 'sim/ppc/psim.c')
-rw-r--r--sim/ppc/psim.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index 45fb821..405cf12 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -226,6 +226,12 @@ write_stack_arguments(psim *system,
unsigned_word start_block,
unsigned_word start_arg)
{
+ if (CURRENT_ENVIRONMENT != VIRTUAL_ENVIRONMENT)
+ {
+ TRACE(trace_create_stack, ("write_stack_arguments() - skipping, OEA program\n"));
+ return;
+ }
+
TRACE(trace_create_stack,
("write_stack_arguments() - %s=0x%x %s=0x%x %s=0x%x %s=0x%x\n",
"system", system, "arg", arg,
@@ -901,4 +907,12 @@ psim_write_memory(psim *system,
}
+INLINE_PSIM void
+psim_print_info(psim *system, int verbose)
+{
+ int i;
+ for (i = 0; i < system->nr_cpus; i++)
+ cpu_print_info (system->processors[i], verbose);
+}
+
#endif /* _PSIM_C_ */