diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1997-04-17 14:07:43 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1997-04-17 14:07:43 +0000 |
commit | 5bfbd725553bc148a0ede1b8dacc7a65aa524ae2 (patch) | |
tree | bac5e4f296e38daf038674acc7a94d522e9c149b /sim/common/sim-base.h | |
parent | 8786d42627510e91fa250322ac7096fcbf7ab4e2 (diff) | |
download | gdb-5bfbd725553bc148a0ede1b8dacc7a65aa524ae2.zip gdb-5bfbd725553bc148a0ede1b8dacc7a65aa524ae2.tar.gz gdb-5bfbd725553bc148a0ede1b8dacc7a65aa524ae2.tar.bz2 |
Add macros for CPU_FOO_FILE, CPU_STATE.
Diffstat (limited to 'sim/common/sim-base.h')
-rw-r--r-- | sim/common/sim-base.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h index d221e04..8b1ac93 100644 --- a/sim/common/sim-base.h +++ b/sim/common/sim-base.h @@ -69,7 +69,7 @@ extern struct sim_state *current_state; sim_cpu is defined to be: - typedef struct { + typedef struct _sim_cpu { ... simulator specific members ... sim_cpu_base base; } sim_cpu; @@ -150,6 +150,7 @@ typedef struct { typedef struct { /* Backlink to main state struct. */ SIM_DESC sd; +#define CPU_STATE(cpu) ((cpu)->base.sd) /* Maximum number of traceable entities. */ #ifndef MAX_TRACE_VALUES @@ -175,6 +176,7 @@ typedef struct { /* Tracing output goes to this or stdout if NULL. We can't store `stdout' here as stdout goes through a callback. */ FILE *trace_file; +#define CPU_TRACE_FILE(cpu) ((cpu)->base.trace_file) /* Maximum number of debuggable entities. This debugging is not intended for normal use. @@ -194,6 +196,7 @@ typedef struct { /* Debugging output goes to this or stderr if NULL. We can't store `stderr' here as stderr goes through a callback. */ FILE *debug_file; +#define CPU_DEBUG_FILE(cpu) ((cpu)->base.debug_file) #ifdef SIM_HAVE_PROFILE /* Maximum number of profilable entities. */ @@ -223,6 +226,7 @@ typedef struct { /* Profile output goes to this or stdout if NULL. We can't store `stderr' here as stdout goes through a callback. */ FILE *profile_file; +#define CPU_PROFILE_FILE(cpu) ((cpu)->base.profile_file) #endif /* SIM_HAVE_PROFILE */ } sim_cpu_base; |