sim: avr: invert sim_state storage

This commit is contained in:
Mike Frysinger
2016-01-21 22:34:05 -05:00
parent e106fc358c
commit 937af0fde5
3 changed files with 23 additions and 11 deletions

View File

@@ -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