From 93e7a1b5b74ce4e5a030378b5f39077aed9d0912 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 12 Sep 1997 02:44:03 +0000 Subject: Add profiling support to v850*. --- sim/v850/sim-main.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sim/v850/sim-main.h') diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h index 52f3086..66e8995 100644 --- a/sim/v850/sim-main.h +++ b/sim/v850/sim-main.h @@ -1,3 +1,4 @@ +#define WITH_CORE #define WITH_MODULO_MEMORY 1 #define WITH_WATCHPOINTS 1 #define WITH_TARGET_WORD_MSB 31 @@ -6,10 +7,17 @@ typedef address_word sim_cia; + /* This simulator doesn't cache state */ #define SIM_ENGINE_HALT_HOOK(sd,last_cpu,cia) while (0) #define SIM_ENGINE_RESTART_HOOK(sd,last_cpu,cia) while (0) +/* Get the number of instructions. FIXME: must be a more elegant way + of doing this. */ +#include "itable.h" +#define MAX_INSNS (nr_itable_entries) +#define INSN_NAME(i) itable[(i)].name + #include "sim-base.h" typedef signed8 int8; -- cgit v1.1