#ifndef SIM_MAIN_H
#define SIM_MAIN_H
#define USING_SIM_BASE_H
struct _sim_cpu;
typedef struct _sim_cpu SIM_CPU;
#include "config.h"
#include "symcat.h"
#include "sim-basics.h"
#include "cgen-types.h"
#include "sh-desc.h"
#include "sh-opc.h"
#include "arch.h"
typedef UDI sim_cia;
#define CIA_GET(cpu) CPU_PC_GET (cpu)
#define CIA_SET(cpu,val) CPU_PC_SET ((cpu), (val) | (sh64_h_ism_get (cpu)))
#include "sim-base.h"
#include "cgen-sim.h"
#include "sh64-sim.h"
struct _sim_cpu {
sim_cpu_base base;
CGEN_CPU cgen_cpu;
#if defined (WANT_CPU_SH64)
SH64_CPU_DATA cpu_data;
#endif
};
struct sim_state {
sim_cpu *cpu;
#define STATE_CPU(sd, n) ( (sd)->cpu)
CGEN_STATE cgen_state;
sim_state_base base;
};
extern SIM_CORE_SIGNAL_FN sh64_core_signal;
#define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \
sh64_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
(TRANSFER), (ERROR))
#define SH64_DEFAULT_MEM_SIZE 0x800000
#endif