From 867b71685a815ac87fc9c0937e2a6c14dc8ec692 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 16 Nov 1995 19:25:47 +0000 Subject: [PATCH] fix bug in last checkin --- sim/ppc/ChangeLog | 4 ++++ sim/ppc/igen.c | 2 ++ sim/ppc/mon.c | 2 +- sim/ppc/ppc-instructions | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index bc326204210..3b12484764d 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -15,9 +15,13 @@ Thu Nov 16 09:52:26 1995 Michael Meissner (model_c_insn): Use max_model_fields_len to size fields. (insn_table_insert_insn): Set max_model_fields_len. (model_table_insert): Ditto. + (gen_model_{c,h}): Model_issue is now called with a processor + argument. * debug.c (trace_description): Add support for trace_tbd. + * mon.c (mon_issue): Pass processor argument to model_issue. + Wed Nov 15 17:32:13 1995 Michael Meissner * cpu.h (cpu_model): Add declaration. diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c index e28f8003e4f..818c16faf7e 100644 --- a/sim/ppc/igen.c +++ b/sim/ppc/igen.c @@ -3055,6 +3055,7 @@ gen_model_h(insn_table *table, lf *file) if (!model_issue_p) { lf_printf(file, "INLINE_MODEL void model_issue\n"); lf_printf(file, "(itable_index index,\n"); + lf_printf(file, " cpu *processor,\n"); lf_printf(file, " model_data *model_ptr,\n"); lf_printf(file, " unsigned_word cia);\n"); lf_printf(file, "\n"); @@ -3226,6 +3227,7 @@ gen_model_c(insn_table *table, lf *file) if (!model_issue_p) { lf_printf(file, "INLINE_MODEL void model_issue(itable_index index,\n"); + lf_printf(file, " cpu *processor,\n"); lf_printf(file, " model_data *model_ptr,\n"); lf_printf(file, " unsigned_word cia);\n"); lf_printf(file, "{\n"); diff --git a/sim/ppc/mon.c b/sim/ppc/mon.c index c6a6e953221..33d6b7ef854 100644 --- a/sim/ppc/mon.c +++ b/sim/ppc/mon.c @@ -107,7 +107,7 @@ mon_issue(itable_index index, cpu_mon *monitor = cpu_monitor(processor); ASSERT(index <= nr_itable_entries); monitor->issue_count[index] += 1; - model_issue(index, cpu_model(processor), cia); + model_issue(index, processor, cpu_model(processor), cia); } diff --git a/sim/ppc/ppc-instructions b/sim/ppc/ppc-instructions index ca34a0e89c9..05709e05a9f 100644 --- a/sim/ppc/ppc-instructions +++ b/sim/ppc/ppc-instructions @@ -138,7 +138,7 @@ void::model-function::model_init:cpu *processor, model_data *model_ptr void::model-function::model_halt:cpu *processor, model_data *model_ptr -void::model-function::model_issue:itable_index index, model_data *model_ptr, unsigned_word cia +void::model-function::model_issue:itable_index index, cpu *processor, model_data *model_ptr, unsigned_word cia if (model_ptr->old_program_counter+4 != cia) model_ptr->nr_branches++; -- 2.30.2