diff options
-rw-r--r-- | sim/common/ChangeLog | 6 | ||||
-rw-r--r-- | sim/common/sim-profile.c | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 3a6cea4..dc6ffef 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,11 @@ 2010-11-22 Mike Frysinger <vapier@gentoo.org> + * sim-profile.c (PROFILE_PC_FREQ, PROFILE_PC_NR_BUCKETS, + PROFILE_PC_SHIFT, PROFILE_PC_START, PROFILE_PC_END, + PROFILE_INSN_COUNT): Add stubs when profile is disabled. + +2010-11-22 Mike Frysinger <vapier@gentoo.org> + * sim-core.c (WITH_HW): Add device casts to device_error, device_io_read_buffer, and device_io_write_buffer. diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index e7bcd3e..837fada 100644 --- a/sim/common/sim-profile.c +++ b/sim/common/sim-profile.c @@ -36,6 +36,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #endif #include <ctype.h> +#if !WITH_PROFILE_PC_P +static unsigned int _profile_stub; +# define PROFILE_PC_FREQ(p) _profile_stub +# define PROFILE_PC_NR_BUCKETS(p) _profile_stub +# define PROFILE_PC_SHIFT(p) _profile_stub +# define PROFILE_PC_START(p) _profile_stub +# define PROFILE_PC_END(p) _profile_stub +# define PROFILE_INSN_COUNT(p) &_profile_stub +#endif + #define COMMAS(n) sim_add_commas (comma_buf, sizeof (comma_buf), (n)) static MODULE_INIT_FN profile_init; |