From fffb44cf98338762dd158bae41ca710f9b47f4cc Mon Sep 17 00:00:00 2001 From: brolley Date: Wed, 27 Sep 2006 20:28:21 +0000 Subject: [PATCH] 2006-09-27 Dave Brolley * sidcpuutil.h (basic_cpu::configure): Set gprof_prev_cycle to total_insn_count when gprof 'cycles' not specified. --- sid/include/ChangeLog | 5 +++++ sid/include/sidcpuutil.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sid/include/ChangeLog b/sid/include/ChangeLog index a19406dea7..8d5e9cc42a 100644 --- a/sid/include/ChangeLog +++ b/sid/include/ChangeLog @@ -1,3 +1,8 @@ +2006-09-27 Dave Brolley + + * sidcpuutil.h (basic_cpu::configure): Set gprof_prev_cycle to + total_insn_count when gprof 'cycles' not specified. + 2006-06-26 Dave Brolley * sidcpuutil.h (gprof_pc_pin,gprof_pc_hi_pin): New members of diff --git a/sid/include/sidcpuutil.h b/sid/include/sidcpuutil.h index 71d06abd1f..ce66459d4d 100644 --- a/sid/include/sidcpuutil.h +++ b/sid/include/sidcpuutil.h @@ -662,7 +662,7 @@ namespace sidutil // Set the state so that the next insn will be sampled, // followed by samples at the specified interval. gprof_counter = step_insn_count - 1; - gprof_prev_cycle = this->total_insn_count - 1; + gprof_prev_cycle = this->total_insn_count; } } return; -- 2.11.0