aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/mon.h
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-15 22:53:59 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-15 22:53:59 +0000
commit80948f392bb653cb29514db15c176d218c2f4c2d (patch)
treeda9dd97251521aeadc9bc8ffe7623d6510da898c /sim/ppc/mon.h
parent1b09c02b1788bb88abd2e325f82600018290dbb3 (diff)
downloadgdb-80948f392bb653cb29514db15c176d218c2f4c2d.zip
gdb-80948f392bb653cb29514db15c176d218c2f4c2d.tar.gz
gdb-80948f392bb653cb29514db15c176d218c2f4c2d.tar.bz2
More model specific changes
Diffstat (limited to 'sim/ppc/mon.h')
-rw-r--r--sim/ppc/mon.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sim/ppc/mon.h b/sim/ppc/mon.h
index e8ac2e3..6df22c9 100644
--- a/sim/ppc/mon.h
+++ b/sim/ppc/mon.h
@@ -31,6 +31,22 @@
/* monitor/logger: counts what the simulation is up to */
+/* Interfact to model to return model specific information */
+typedef struct _model_print model_print;
+struct _model_print {
+ model_print *next;
+ const char *name;
+ const char *suffix_singular;
+ const char *suffix_plural;
+ unsigned count;
+};
+
+/* Additional events to monitor */
+typedef enum _mon_events {
+ mon_event_icache_miss,
+ nr_mon_events
+} mon_events;
+
typedef struct _mon mon;
typedef struct _cpu_mon cpu_mon;
@@ -68,6 +84,11 @@ INLINE_MON void mon_write
cpu *processor,
unsigned_word cia);
+INLINE_MON void mon_event
+(mon_events event,
+ cpu *processor,
+ unsigned_word cia);
+
INLINE_MON void mon_print_info
(psim *system,
mon *monitor,