From 80948f392bb653cb29514db15c176d218c2f4c2d Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 15 Nov 1995 22:53:59 +0000 Subject: More model specific changes --- sim/ppc/mon.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'sim/ppc/mon.h') 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, -- cgit v1.1