/* Main header for the Hitachi h8/300 architecture. */
+#include "config.h"
#include "bfd.h"
#ifndef SIM_MAIN_H
};
#include "sim-basics.h"
-
-/* Define sim_cia. */
-typedef unsigned32 sim_cia;
-
#include "sim-base.h"
/* Structure used to describe addressing */
/* The sim_state struct. */
struct sim_state {
- struct _sim_cpu *cpu;
+ sim_cpu *cpu[MAX_NR_PROCESSORS];
unsigned int sim_cache_size;
decoded_inst *sim_cache;
unsigned short *cache_idx;
/* The current state of the processor; registers, memory, etc. */
-#define CIA_GET(CPU) (cpu_get_pc (CPU))
-#define CIA_SET(CPU, VAL) (cpu_set_pc ((CPU), (VAL)))
-#define STATE_CPU(SD, N) ((SD)->cpu) /* Single Processor. */
#define cpu_set_pc(CPU, VAL) (((CPU)->pc) = (VAL))
#define cpu_get_pc(CPU) (((CPU)->pc))