/* Shorthand macro for fetching registers.
CPU_CGEN_HW is defined in cpu.h. */
-#define CPU(x) (CPU_CGEN_HW (current_cpu)->x)
+//#define CPU(x) (CPU_CGEN_HW (current_cpu)->x)
#endif /* CGEN_CPU_H */
#ifndef CGEN_DEFS_H
#define CGEN_DEFS_H
+#include "opcode/cgen.h"
+#include "cgen-types.h"
+
/* Compute number of longs required to hold N bits. */
#define HOST_LONGS_FOR_BITS(n) \
(((n) + sizeof (long) * 8 - 1) / sizeof (long) * 8)
/* Type of function to return an insn name. */
typedef const char * (CPU_INSN_NAME_FN) (sim_cpu *, int);
-#ifdef CGEN_ARCH
-# include "cgen-cpu.h"
-#endif
+#include "cgen-cpu.h"
/* Types for register access functions.
These routines implement the sim_{fetch,store}_register interface. */
PC_STORE_FN *pc_store;
#define CPU_PC_STORE(c) ((c)->pc_store)
-#ifdef CGEN_ARCH
/* Static parts of cgen. */
CGEN_CPU cgen_cpu;
#define CPU_CGEN_CPU(cpu) ((cpu)->cgen_cpu)
-#endif
/* Pointer for sim target to store arbitrary cpu data. Normally the
target should define a struct and use it here. */