+2003-01-15 Dave Brolley <brolley@redhat.com>
+
+ * compCGEN.cxx (cgen_bi_endian_cpu): Don't initialize trace_count.
+ (trace_counter): Use total_insn_count and total_latency.
+ * cgen-cpu.h (class cgen_bi_endian_cpu): Remove trace_count.
+
2003-01-09 Frank Ch. Eigler <fche@redhat.com>
* tracedis.cxx (bfd_{get,put}_bits): Use int, not obsolete bfd
// cgen-cpu.h -*- C++ -*-
-// Copyright (C) 2000, 2001, 2002 Red Hat.
+// Copyright (C) 2000, 2001, 2002, 2003 Red Hat.
// This file is part of SID and is licensed under the GPL.
// See the file COPYING.SID for conditions for redistribution.
static int cgen_symbol_at_address(bfd_vma addr, struct disassemble_info * info);
// Counter tracing support
void trace_counter (PCADDR pc);
- host_int_8 trace_count;
public:
cgen_bi_endian_cpu ();
// compCGEN.cxx - CPU components. -*- C++ -*-
-// Copyright (C) 1999, 2000, 2001, 2002 Red Hat.
+// Copyright (C) 1999, 2000, 2001, 2002, 2003 Red Hat.
// This file is part of SID and is licensed under the GPL.
// See the file COPYING.SID for conditions for redistribution.
// ----------------------------------------------------------------------------
cgen_bi_endian_cpu::cgen_bi_endian_cpu ()
{
- trace_count = 0;
warnings_enabled = false;
add_attribute ("enable-warnings?", & warnings_enabled, "setting");
this->engine_type = ENGINE_UNKNOWN;
cgen_bi_endian_cpu::trace_counter (PCADDR pc)
{
this->trace_stream
- << this->trace_count++ << ' '
- << (this->sched_query.now()-1) << '\t';
-
- // Invalidate any local icaches; they distort approximate cycle counting.
- this->flush_icache (pc);
+ << this->total_insn_count << ' '
+ << this->total_insn_count + this->total_latency << '\t';
}
\f