forked from Imagelibrary/binutils-gdb
sim: avr: invert sim_state storage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user