28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: machine.h,v 1.53 2005/06/02 17:11:36 debug Exp $ |
* $Id: machine.h,v 1.67 2005/08/16 05:37:13 debug Exp $ |
32 |
*/ |
*/ |
33 |
|
|
34 |
#include <sys/types.h> |
#include <sys/types.h> |
57 |
struct ps2_data; |
struct ps2_data; |
58 |
struct dec5800_data; |
struct dec5800_data; |
59 |
struct au1x00_ic_data; |
struct au1x00_ic_data; |
60 |
|
struct malta_data; |
61 |
struct vr41xx_data; |
struct vr41xx_data; |
62 |
struct jazz_data; |
struct jazz_data; |
63 |
struct crime_data; |
struct crime_data; |
65 |
struct sgi_ip20_data; |
struct sgi_ip20_data; |
66 |
struct sgi_ip22_data; |
struct sgi_ip22_data; |
67 |
struct sgi_ip30_data; |
struct sgi_ip30_data; |
68 |
|
struct isa_pic_data { |
69 |
|
struct pic8259_data *pic1; |
70 |
|
struct pic8259_data *pic2; |
71 |
|
}; |
72 |
|
|
73 |
|
|
74 |
|
#define MACHINE_NAME_MAXBUF 200 |
75 |
|
|
76 |
struct machine { |
struct machine { |
77 |
/* Pointer back to the emul struct we are in: */ |
/* Pointer back to the emul struct we are in: */ |
126 |
struct cpu **cpus; |
struct cpu **cpus; |
127 |
|
|
128 |
/* These are used by stuff in cpu.c, mostly: */ |
/* These are used by stuff in cpu.c, mostly: */ |
|
struct timeval starttime; |
|
129 |
int64_t ncycles; |
int64_t ncycles; |
130 |
int64_t ncycles_show; |
int64_t ncycles_show; |
131 |
int64_t ncycles_flush; |
int64_t ncycles_flush; |
132 |
|
int64_t ncycles_since_gettimeofday; |
133 |
|
struct timeval starttime; |
134 |
int a_few_cycles; |
int a_few_cycles; |
135 |
int a_few_instrs; |
int a_few_instrs; |
136 |
|
|
143 |
int memory_offset_in_mb; |
int memory_offset_in_mb; |
144 |
int prom_emulation; |
int prom_emulation; |
145 |
int register_dump; |
int register_dump; |
146 |
|
int arch_pagesize; |
147 |
|
|
148 |
int n_breakpoints; |
int n_breakpoints; |
149 |
char *breakpoint_string[MAX_BREAKPOINTS]; |
char *breakpoint_string[MAX_BREAKPOINTS]; |
160 |
int cache_secondary_linesize; |
int cache_secondary_linesize; |
161 |
|
|
162 |
int dbe_on_nonexistant_memaccess; |
int dbe_on_nonexistant_memaccess; |
163 |
|
int dyntrans_alignment_check; |
164 |
int bintrans_enable; |
int bintrans_enable; |
165 |
int old_bintrans_enable; |
int old_bintrans_enable; |
166 |
int bintrans_enabled_from_start; |
int bintrans_enabled_from_start; |
202 |
struct au1x00_ic_data *au1x00_ic_data; |
struct au1x00_ic_data *au1x00_ic_data; |
203 |
struct vr41xx_data *vr41xx_data; |
struct vr41xx_data *vr41xx_data; |
204 |
struct jazz_data *jazz_data; |
struct jazz_data *jazz_data; |
205 |
|
struct malta_data *malta_data; |
206 |
|
struct isa_pic_data isa_pic_data; |
207 |
struct sgi_ip20_data *sgi_ip20_data; |
struct sgi_ip20_data *sgi_ip20_data; |
208 |
struct sgi_ip22_data *sgi_ip22_data; |
struct sgi_ip22_data *sgi_ip22_data; |
209 |
struct sgi_ip30_data *sgi_ip30_data; |
struct sgi_ip30_data *sgi_ip30_data; |
233 |
#define ARCH_MIPS 1 |
#define ARCH_MIPS 1 |
234 |
#define ARCH_PPC 2 |
#define ARCH_PPC 2 |
235 |
#define ARCH_SPARC 3 |
#define ARCH_SPARC 3 |
236 |
#define ARCH_URISC 4 |
#define ARCH_ALPHA 4 |
237 |
#define ARCH_HPPA 5 |
#define ARCH_X86 5 |
238 |
#define ARCH_ALPHA 6 |
#define ARCH_ARM 6 |
239 |
#define ARCH_X86 7 |
#define ARCH_IA64 7 |
240 |
#define ARCH_ARM 8 |
#define ARCH_M68K 8 |
241 |
|
|
242 |
/* MIPS: */ |
/* MIPS: */ |
243 |
#define MACHINE_BAREMIPS 1000 |
#define MACHINE_BAREMIPS 1000 |
251 |
#define MACHINE_MESHCUBE 1008 |
#define MACHINE_MESHCUBE 1008 |
252 |
#define MACHINE_NETGEAR 1009 |
#define MACHINE_NETGEAR 1009 |
253 |
#define MACHINE_SONYNEWS 1010 |
#define MACHINE_SONYNEWS 1010 |
254 |
|
#define MACHINE_EVBMIPS 1011 |
255 |
|
#define MACHINE_PSP 1012 |
256 |
|
|
257 |
/* PPC: */ |
/* PPC: */ |
258 |
#define MACHINE_BAREPPC 2000 |
#define MACHINE_BAREPPC 2000 |
267 |
|
|
268 |
/* SPARC: */ |
/* SPARC: */ |
269 |
#define MACHINE_BARESPARC 3000 |
#define MACHINE_BARESPARC 3000 |
270 |
#define MACHINE_ULTRA1 3001 |
#define MACHINE_TESTSPARC 3001 |
271 |
|
#define MACHINE_ULTRA1 3002 |
|
/* URISC: */ |
|
|
#define MACHINE_BAREURISC 4000 |
|
|
#define MACHINE_TESTURISC 4001 |
|
|
|
|
|
/* HPPA: */ |
|
|
#define MACHINE_BAREHPPA 5000 |
|
|
#define MACHINE_TESTHPPA 5001 |
|
272 |
|
|
273 |
/* Alpha: */ |
/* Alpha: */ |
274 |
#define MACHINE_BAREALPHA 6000 |
#define MACHINE_BAREALPHA 4000 |
275 |
#define MACHINE_TESTALPHA 6001 |
#define MACHINE_TESTALPHA 4001 |
276 |
|
#define MACHINE_ALPHA 4002 |
277 |
|
|
278 |
/* X86: */ |
/* X86: */ |
279 |
#define MACHINE_BAREX86 7000 |
#define MACHINE_BAREX86 5000 |
280 |
#define MACHINE_X86 7001 |
#define MACHINE_X86 5001 |
281 |
|
|
282 |
/* ARM: */ |
/* ARM: */ |
283 |
#define MACHINE_BAREARM 8000 |
#define MACHINE_BAREARM 6000 |
284 |
#define MACHINE_TESTARM 8001 |
#define MACHINE_TESTARM 6001 |
285 |
|
|
286 |
|
/* IA64: */ |
287 |
|
#define MACHINE_BAREIA64 7000 |
288 |
|
#define MACHINE_TESTIA64 7001 |
289 |
|
|
290 |
|
/* M68K: */ |
291 |
|
#define MACHINE_BAREM68K 8000 |
292 |
|
#define MACHINE_TESTM68K 8001 |
293 |
|
|
294 |
/* Other "pseudo"-machines: */ |
/* Other "pseudo"-machines: */ |
295 |
#define MACHINE_NONE 0 |
#define MACHINE_NONE 0 |
313 |
#define DEC_PROM_TCINFO 0xffffffffbfc2c000ULL |
#define DEC_PROM_TCINFO 0xffffffffbfc2c000ULL |
314 |
#define DEC_MEMMAP_ADDR 0xffffffffbfc30000ULL |
#define DEC_MEMMAP_ADDR 0xffffffffbfc30000ULL |
315 |
|
|
|
|
|
316 |
/* HPCmips: */ |
/* HPCmips: */ |
|
/* Machine types: */ |
|
317 |
#define MACHINE_HPCMIPS_CASIO_BE300 1 |
#define MACHINE_HPCMIPS_CASIO_BE300 1 |
318 |
#define MACHINE_HPCMIPS_CASIO_E105 2 |
#define MACHINE_HPCMIPS_CASIO_E105 2 |
319 |
#define MACHINE_HPCMIPS_NEC_MOBILEPRO_770 3 |
#define MACHINE_HPCMIPS_NEC_MOBILEPRO_770 3 |
338 |
#define MACHINE_ARC_JAZZ_M700 7 |
#define MACHINE_ARC_JAZZ_M700 7 |
339 |
#define MACHINE_ARC_NEC_R96 8 |
#define MACHINE_ARC_NEC_R96 8 |
340 |
|
|
341 |
|
/* EVBMIPS: */ |
342 |
|
#define MACHINE_EVBMIPS_MALTA 1 |
343 |
|
#define MACHINE_EVBMIPS_MALTA_BE 2 |
344 |
|
#define MACHINE_EVBMIPS_PB1000 3 |
345 |
|
|
346 |
/* MacPPC: TODO: Real model names */ |
/* MacPPC: TODO: Real model names */ |
347 |
#define MACHINE_MACPPC_G4 1 |
#define MACHINE_MACPPC_G4 1 |
348 |
#define MACHINE_MACPPC_G5 2 |
#define MACHINE_MACPPC_G5 2 |