(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.
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");
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");
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);
}
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++;