diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-21 22:46:34 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-17 01:01:08 -0400 |
commit | 2ad10cb22246b16fdebece06646db288dbea1fdb (patch) | |
tree | 22d99c218a7685a319099c0b5b5ba50fe353007a /sim/h8300/sim-main.h | |
parent | 8ea7241cf3f46e9164c5ef75611bb2442350c934 (diff) | |
download | binutils-2ad10cb22246b16fdebece06646db288dbea1fdb.zip binutils-2ad10cb22246b16fdebece06646db288dbea1fdb.tar.gz binutils-2ad10cb22246b16fdebece06646db288dbea1fdb.tar.bz2 |
sim: h8300: invert sim_state storage
Diffstat (limited to 'sim/h8300/sim-main.h')
-rw-r--r-- | sim/h8300/sim-main.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/h8300/sim-main.h b/sim/h8300/sim-main.h index 68e44ae..57ff307 100644 --- a/sim/h8300/sim-main.h +++ b/sim/h8300/sim-main.h @@ -5,6 +5,8 @@ #ifndef SIM_MAIN_H #define SIM_MAIN_H +#define SIM_HAVE_COMMON_SIM_STATE + #define DEBUG /* These define the size of main memory for the simulator. @@ -130,15 +132,13 @@ struct _sim_cpu { sim_cpu_base base; }; -/* The sim_state struct. */ -struct sim_state { - sim_cpu *cpu[MAX_NR_PROCESSORS]; +struct h8300_sim_state { unsigned long memory_size; #ifdef ADEBUG int stats[O_LAST]; #endif - sim_state_base base; }; +#define H8300_SIM_STATE(sd) ((struct h8300_sim_state *) STATE_ARCH_DATA (sd)) /* The current state of the processor; registers, memory, etc. */ |