From ef93a840784b53c63dec9c1f39aa934c11740f8b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 22 Apr 2010 02:18:32 +0000 Subject: [PATCH] sim: profile: implement --profile-file backend Need to update the sim_profile_print_bar() call after the common/ changes. Signed-off-by: Mike Frysinger --- sim/common/ChangeLog | 4 ++++ sim/common/cgen-scache.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 1b0ac7640a4..ddca26658c0 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2010-04-21 Mike Frysinger + + * profile.c (sim_profile_print_bar): Add cpu argument. + 2010-04-21 Mike Frysinger * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU. diff --git a/sim/common/cgen-scache.c b/sim/common/cgen-scache.c index 82f57b47936..d92ecac0d49 100644 --- a/sim/common/cgen-scache.c +++ b/sim/common/cgen-scache.c @@ -466,7 +466,7 @@ scache_print_profile (SIM_CPU *cpu, int verbose) i, max_val < 10000 ? 5 : 10, sim_add_commas (buf, sizeof (buf), lengths[i])); - sim_profile_print_bar (sd, PROFILE_HISTOGRAM_WIDTH, + sim_profile_print_bar (sd, cpu, PROFILE_HISTOGRAM_WIDTH, lengths[i], max_val); sim_io_printf (sd, "\n"); } -- 2.30.2