summaryrefslogtreecommitdiff
path: root/sim/common/sim-profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-profile.c')
-rw-r--r--sim/common/sim-profile.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c
index e7bcd3e3a7d..837fada6950 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;