sim: profile: implement --profile-file backend
authorMike Frysinger <vapier@gentoo.org>
Thu, 22 Apr 2010 00:40:14 +0000 (00:40 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 22 Apr 2010 00:40:14 +0000 (00:40 +0000)
The common/ code uses sim_cpu rather than SIM_CPU to avoid inter-header
dependency issues, so follow convention to fix building some targets.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/common/ChangeLog
sim/common/sim-profile.h

index ae25963..1b0ac76 100644 (file)
@@ -1,5 +1,9 @@
 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
 
+       * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
+
+2010-04-21  Mike Frysinger  <vapier@gentoo.org>
+
        * sim-profile.c (profile_vprintf, profile_printf): New functions.
        (profile_print_pc): Convert sim_io_printf to profile_printf.
        (profile_print_insn): Likewise.
index 04aea52..c97aa36 100644 (file)
@@ -308,6 +308,6 @@ do { \
 
 /* Misc. utilities.  */
 
-extern void sim_profile_print_bar (SIM_DESC, SIM_CPU *, unsigned int, unsigned int, unsigned int);
+extern void sim_profile_print_bar (SIM_DESC, sim_cpu *, unsigned int, unsigned int, unsigned int);
 
 #endif /* SIM_PROFILE_H */