diff options
author | Doug Evans <dje@google.com> | 1998-02-10 01:43:42 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1998-02-10 01:43:42 +0000 |
commit | e61871cedc7ec445d26209ac4517f323b7798d51 (patch) | |
tree | 7e339dd8790c8770a4a9535b117b8d0206a6cc53 /sim/common/cgen-sim.h | |
parent | 01c97361c2469642dc2e74a55f2b653342ba507f (diff) | |
download | gdb-e61871cedc7ec445d26209ac4517f323b7798d51.zip gdb-e61871cedc7ec445d26209ac4517f323b7798d51.tar.gz gdb-e61871cedc7ec445d26209ac4517f323b7798d51.tar.bz2 |
* cgen-sim.h (DECODE): Always use switch for `read' for now.
* cgen.sh (decode): Add s/@arch@/$arch/.
* genmloop.sh (@cpu@_engine_run): Delete `current_state'.
(engine_resume): Likewise. Make `engine' volatile. Save copy
of cpu pointer in volatile object. Initialize read switch if
-parallel.
Diffstat (limited to 'sim/common/cgen-sim.h')
-rw-r--r-- | sim/common/cgen-sim.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sim/common/cgen-sim.h b/sim/common/cgen-sim.h index 71e41df..d6c405a 100644 --- a/sim/common/cgen-sim.h +++ b/sim/common/cgen-sim.h @@ -48,6 +48,7 @@ typedef struct parallel_exec PARALLEL_EXEC; /* Types of the machine generated extract and semantic fns. */ typedef void (EXTRACT_FN) (SIM_CPU *, PCADDR, insn_t, ARGBUF *); +/* ??? READ_FN isn't currently used anywhere, we always use a switch. */ typedef void (READ_FN) (SIM_CPU *, PCADDR, insn_t, PARALLEL_EXEC *); /*typedef CIA (SEMANTIC_FN) (SEM_ARG);*/ typedef PCADDR (SEMANTIC_FN) (SIM_CPU *, ARGBUF *); @@ -62,20 +63,13 @@ typedef struct { const struct cgen_insn *opcode; EXTRACT_FN *extract; #ifdef HAVE_PARALLEL_EXEC -#ifdef USE_READ_SWITCH #ifdef __GNUC__ void *read; #else int read; #endif -#else - READ_FN *read; -#endif #endif SEMANTIC_FN *semantic; -#if 0 /* wip */ - EXTRACT_CACHE_FN *extract_fast; -#endif SEMANTIC_CACHE_FN *semantic_fast; #if WITH_SEM_SWITCH_FULL && defined (__GNUC__) /* Set at runtime. */ |