diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-21 22:34:05 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-17 00:58:32 -0400 |
commit | 937af0fde5cf532c7f3958662525c45d46edd047 (patch) | |
tree | 7f52b91fd866d77d71339e71845e79c38097be66 /sim/avr/sim-main.h | |
parent | e106fc358c217f8f1e09cfdd383f564178c8f5eb (diff) | |
download | gdb-937af0fde5cf532c7f3958662525c45d46edd047.zip gdb-937af0fde5cf532c7f3958662525c45d46edd047.tar.gz gdb-937af0fde5cf532c7f3958662525c45d46edd047.tar.bz2 |
sim: avr: invert sim_state storage
Diffstat (limited to 'sim/avr/sim-main.h')
-rw-r--r-- | sim/avr/sim-main.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/avr/sim-main.h b/sim/avr/sim-main.h index 24f975f..4f18882 100644 --- a/sim/avr/sim-main.h +++ b/sim/avr/sim-main.h @@ -19,6 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef SIM_MAIN_H #define SIM_MAIN_H +#define SIM_HAVE_COMMON_SIM_STATE + #include "sim-basics.h" #include "sim-base.h" @@ -33,13 +35,11 @@ struct _sim_cpu { sim_cpu_base base; }; -struct sim_state { - sim_cpu *cpu[MAX_NR_PROCESSORS]; - +struct avr_sim_state { /* If true, the pc needs more than 2 bytes. */ int avr_pc22; - - sim_state_base base; }; +#define AVR_SIM_STATE(sd) ((struct avr_sim_state *) STATE_ARCH_DATA (sd)) + #endif |