aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/psim.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-12 14:20:39 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-12 14:20:39 +0000
commit28816f45f574ca788dd4e05b8ee7a140e01f3d84 (patch)
treeae6525ea117a94aa6fa239a43eb8633513158742 /sim/ppc/psim.c
parentc05c182dd679dd98f39e59fd567f767c679fa13f (diff)
downloadgdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.zip
gdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.tar.gz
gdb-28816f45f574ca788dd4e05b8ee7a140e01f3d84.tar.bz2
Add support for setting model name and other things
Diffstat (limited to 'sim/ppc/psim.c')
-rw-r--r--sim/ppc/psim.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/ppc/psim.c b/sim/ppc/psim.c
index b696ab0..89a9fff 100644
--- a/sim/ppc/psim.c
+++ b/sim/ppc/psim.c
@@ -98,6 +98,7 @@ int current_environment;
int current_alignment;
int current_floating_point;
ppc_model current_ppc_model = WITH_DEFAULT_PPC_MODEL;
+model_enum current_model = WITH_DEFAULT_MODEL;
/* create a device tree from the image */
@@ -653,6 +654,8 @@ run_until_stop(psim *system,
instruction,
cia,
cache_entry);
+
+ mon_event(mon_event_icache_miss, processor, cia);
cache_entry->address = cia;
cache_entry->semantic = semantic;
cia = semantic(processor, cache_entry, cia);
@@ -746,6 +749,8 @@ run_until_stop(psim *system,
instruction,
cia,
cache_entry);
+
+ mon_event(mon_event_icache_miss, system->processors[current_cpu], cia);
cache_entry->address = cia;
cache_entry->semantic = semantic;
cpu_set_program_counter(processor,