I've committed this patch which is a couple fo tweaks to the dynamic
configuration and profiling interfaces. basic_cpu::cg_profile and
basic_cpu::cg_profile_jump are now virtual to allow for hooks by
inheriting classes. basic_cpu::dynamic_config has been added in order to
force --insn-count=1 when --trace-counter is on. This is needed in order
that total_insn_count is updated after each insn.
+ virtual component::status dynamic_config(const string& spec)
+ // Call up to the base class
+ component::status s = configurable_component::dynamic_config (spec);
+ // Check whether insn-count must be forced to 1
+ if (trace_counter_p)
+ configure ("insn-count=1");
+ return s;
// state save/restore: Override these in derived classes, but
// include a call up to this base implementation.