diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-12 02:44:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-12 02:44:03 +0000 |
commit | 93e7a1b5b74ce4e5a030378b5f39077aed9d0912 (patch) | |
tree | 7ba8a934d602cd9dae5417f8e943cfffe4ebe87e /sim/v850/sim-main.h | |
parent | 11ac69e0139253d10771787a44adfecb9e4bef70 (diff) | |
download | gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.zip gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.tar.gz gdb-93e7a1b5b74ce4e5a030378b5f39077aed9d0912.tar.bz2 |
Add profiling support to v850*.
Diffstat (limited to 'sim/v850/sim-main.h')
-rw-r--r-- | sim/v850/sim-main.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; |