28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: machine.h,v 1.179 2007/06/15 17:02:39 debug Exp $ |
* $Id: machine.h,v 1.182 2007/08/29 20:36:49 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include <sys/types.h> |
#include <sys/types.h> |
63 |
uint64_t *addr; |
uint64_t *addr; |
64 |
}; |
}; |
65 |
|
|
66 |
|
struct statistics { |
67 |
|
char *filename; |
68 |
|
FILE *file; |
69 |
|
int enabled; |
70 |
|
char *fields; /* "vpi" etc. */ |
71 |
|
}; |
72 |
|
|
73 |
struct tick_functions { |
struct tick_functions { |
74 |
int n_entries; |
int n_entries; |
75 |
|
|
93 |
struct fb_window **fb_windows; |
struct fb_window **fb_windows; |
94 |
}; |
}; |
95 |
|
|
96 |
|
|
97 |
|
/* |
98 |
|
* The machine struct: |
99 |
|
*/ |
100 |
struct machine { |
struct machine { |
101 |
/* Pointer back to the emul struct we are in: */ |
/* Pointer back to the emul struct we are in: */ |
102 |
struct emul *emul; |
struct emul *emul; |
107 |
/* Name as choosen by the user: */ |
/* Name as choosen by the user: */ |
108 |
char *name; |
char *name; |
109 |
|
|
110 |
/* Full "path" to the machine, e.g. "emul[0].machine[0]": */ |
/* Full "path" to the machine, e.g. "machine[0]": */ |
111 |
char *path; |
char *path; |
112 |
|
|
113 |
int arch; /* ARCH_MIPS, ARCH_PPC, .. */ |
int arch; /* ARCH_MIPS, ARCH_PPC, .. */ |
177 |
int n_gfx_cards; |
int n_gfx_cards; |
178 |
|
|
179 |
/* Instruction statistics: */ |
/* Instruction statistics: */ |
180 |
char *statistics_filename; |
struct statistics statistics; |
|
FILE *statistics_file; |
|
|
int statistics_enabled; |
|
|
char *statistics_fields; /* "vpi" etc. */ |
|
181 |
|
|
182 |
/* X11/framebuffer stuff (per machine): */ |
/* X11/framebuffer stuff (per machine): */ |
183 |
struct x11_md x11_md; |
struct x11_md x11_md; |
211 |
#define ARCH_ARM 5 |
#define ARCH_ARM 5 |
212 |
#define ARCH_SH 6 |
#define ARCH_SH 6 |
213 |
#define ARCH_M88K 7 |
#define ARCH_M88K 7 |
214 |
|
#define ARCH_M32R 8 |
215 |
|
|
216 |
/* MIPS: */ |
/* MIPS: */ |
217 |
#define MACHINE_BAREMIPS 1000 |
#define MACHINE_BAREMIPS 1000 |
266 |
#define MACHINE_TESTM88K 7001 |
#define MACHINE_TESTM88K 7001 |
267 |
#define MACHINE_MVME88K 7002 |
#define MACHINE_MVME88K 7002 |
268 |
|
|
269 |
|
/* M32R: */ |
270 |
|
#define MACHINE_BAREM32R 8000 |
271 |
|
#define MACHINE_TESTM32R 8001 |
272 |
|
|
273 |
/* Other "pseudo"-machines: */ |
/* Other "pseudo"-machines: */ |
274 |
#define MACHINE_NONE 0 |
#define MACHINE_NONE 0 |
275 |
#define MACHINE_USERLAND 100000 |
#define MACHINE_USERLAND 100000 |