* Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
[deliverable/binutils-gdb.git] / sim / fr30 / sim-main.h
CommitLineData
7a3085c1
AC
1// OBSOLETE /* Main header for the fr30. */
2// OBSOLETE
3// OBSOLETE #define USING_SIM_BASE_H /* FIXME: quick hack */
4// OBSOLETE
5// OBSOLETE struct _sim_cpu; /* FIXME: should be in sim-basics.h */
6// OBSOLETE typedef struct _sim_cpu SIM_CPU;
7// OBSOLETE
8// OBSOLETE /* sim-basics.h includes config.h but cgen-types.h must be included before
9// OBSOLETE sim-basics.h and cgen-types.h needs config.h. */
10// OBSOLETE #include "config.h"
11// OBSOLETE
12// OBSOLETE #include "symcat.h"
13// OBSOLETE #include "sim-basics.h"
14// OBSOLETE #include "cgen-types.h"
15// OBSOLETE #include "fr30-desc.h"
16// OBSOLETE #include "fr30-opc.h"
17// OBSOLETE #include "arch.h"
18// OBSOLETE
19// OBSOLETE /* These must be defined before sim-base.h. */
20// OBSOLETE typedef USI sim_cia;
21// OBSOLETE
22// OBSOLETE #define CIA_GET(cpu) CPU_PC_GET (cpu)
23// OBSOLETE #define CIA_SET(cpu,val) CPU_PC_SET ((cpu), (val))
24// OBSOLETE
25// OBSOLETE #include "sim-base.h"
26// OBSOLETE #include "cgen-sim.h"
27// OBSOLETE #include "fr30-sim.h"
28// OBSOLETE \f
29// OBSOLETE /* The _sim_cpu struct. */
30// OBSOLETE
31// OBSOLETE struct _sim_cpu {
32// OBSOLETE /* sim/common cpu base. */
33// OBSOLETE sim_cpu_base base;
34// OBSOLETE
35// OBSOLETE /* Static parts of cgen. */
36// OBSOLETE CGEN_CPU cgen_cpu;
37// OBSOLETE
38// OBSOLETE /* CPU specific parts go here.
39// OBSOLETE Note that in files that don't need to access these pieces WANT_CPU_FOO
40// OBSOLETE won't be defined and thus these parts won't appear. This is ok in the
41// OBSOLETE sense that things work. It is a source of bugs though.
42// OBSOLETE One has to of course be careful to not take the size of this
43// OBSOLETE struct and no structure members accessed in non-cpu specific files can
44// OBSOLETE go after here. Oh for a better language. */
45// OBSOLETE #if defined (WANT_CPU_FR30BF)
46// OBSOLETE FR30BF_CPU_DATA cpu_data;
47// OBSOLETE #endif
48// OBSOLETE };
49// OBSOLETE \f
50// OBSOLETE /* The sim_state struct. */
51// OBSOLETE
52// OBSOLETE struct sim_state {
53// OBSOLETE sim_cpu *cpu;
54// OBSOLETE #define STATE_CPU(sd, n) (/*&*/ (sd)->cpu)
55// OBSOLETE
56// OBSOLETE CGEN_STATE cgen_state;
57// OBSOLETE
58// OBSOLETE sim_state_base base;
59// OBSOLETE };
60// OBSOLETE \f
61// OBSOLETE /* Misc. */
62// OBSOLETE
63// OBSOLETE /* Catch address exceptions. */
64// OBSOLETE extern SIM_CORE_SIGNAL_FN fr30_core_signal;
65// OBSOLETE #define SIM_CORE_SIGNAL(SD,CPU,CIA,MAP,NR_BYTES,ADDR,TRANSFER,ERROR) \
66// OBSOLETE fr30_core_signal ((SD), (CPU), (CIA), (MAP), (NR_BYTES), (ADDR), \
67// OBSOLETE (TRANSFER), (ERROR))
68// OBSOLETE
69// OBSOLETE /* Default memory size. */
70// OBSOLETE #define FR30_DEFAULT_MEM_SIZE 0x800000 /* 8M */
This page took 0.031928 seconds and 4 git commands to generate.