fix bug in last checkin

This commit is contained in:
Michael Meissner 1995-11-16 19:25:47 +00:00
parent 71a164f70a
commit 867b71685a
4 changed files with 8 additions and 2 deletions

View File

@ -15,9 +15,13 @@ Thu Nov 16 09:52:26 1995 Michael Meissner <meissner@tiktok.cygnus.com>
(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 <meissner@tiktok.cygnus.com>
* cpu.h (cpu_model): Add declaration.

View File

@ -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");

View File

@ -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);
}

View File

@ -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++;