+2003-04-16 Dave Brolley <brolley@redhat.com>
+
+ * sidcpuutil.h (final_insn_count_p): New member of basic_cpu.
+ (update_total_latency): New method of basic_cpu.
+ (stream_state): Output final_insn_count_p.
+ (destream_state): Input final_insn_count_p.
+ (basic_cpu): Add attribute final-insn-count.
+
2003-02-06 Frank Ch. Eigler <fche@redhat.com>
* sidbusutil.h (control_register_bus word_read,write): C++ cleanup.
bool trace_disass_p;
bool trace_semantics_p;
bool trace_counter_p;
+ bool final_insn_count_p;
bool enable_step_trap_p;
cpu_trace_stream trace_stream;
}
}
+ public:
+ void update_total_latency (sid::host_int_8 latency) { this->total_latency += latency; }
+
protected:
virtual sid::host_int_8 latency_to_cycles (sid::host_int_8 num)
{
<< " " << this->trace_disass_p
<< " " << this->trace_semantics_p
<< " " << this->trace_counter_p
+ << " " << this->final_insn_count_p
// pins
<< " " << this->step_cycles_pin
<< " " << this->trap_type_pin
>> this->trace_disass_p
>> this->trace_semantics_p
>> this->trace_counter_p
+ >> this->final_insn_count_p
// pins
>> this->step_cycles_pin
>> this->trap_type_pin
add_attribute ("trace-result?", & this->trace_result_p, "setting");
this->trace_counter_p = false;
add_attribute ("trace-counter?", & this->trace_counter_p, "setting");
+ this->final_insn_count_p = false;
+ add_attribute ("final-insn-count?", & this->final_insn_count_p, "setting");
}
virtual ~basic_cpu() throw() {}